pycharm中functools包无法安装
来源:7-1 .管理员登录
五月未央
2017-11-16
下面是报错信息。根据报错信息,我使用的是pip版本是7,让我使用9。但是我更新成9了,再次安装还是这个问题。
具体报错信息:
Collecting functools
Using cached functools-0.5.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 3, in <module>
File "/Users/xxxxxx/PhpstormProjects/movie_venv/lib/python3.6/site-packages/setuptools/__init__.py", line 4, in <module>
import distutils.core
File "/Users/xxxxxx/PhpstormProjects/movie_venv/lib/python3.6/distutils/__init__.py", line 4, in <module>
import imp
File "/Users/xxxxxx/PhpstormProjects/movie_venv/lib/python3.6/imp.py", line 19, in <module>
from importlib._bootstrap import _ERR_MSG, _exec, _load, _builtin_from_name
File "/Users/xxxxxx/PhpstormProjects/movie_venv/lib/python3.6/importlib/__init__.py", line 57, in <module>
import types
File "/Users/xxxxxx/PhpstormProjects/movie_venv/lib/python3.6/types.py", line 171, in <module>
import functools as _functools
File "/private/var/folders/lk/ckx4912j70lc11msj6bh6vlm0000gn/T/pycharm-packaging2/functools/functools.py", line 34
raise TypeError, 'compose expects at least one argument'
^
SyntaxError: invalid syntax
----------------------------------------
You are using pip version 7.1.0, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/lk/ckx4912j70lc11msj6bh6vlm0000gn/T/pycharm-packaging2/functools
麻烦老师帮忙解决下。谢谢。
1回答
-
rustgopy
2017-11-20
同学,你好,你用命令行更新一下pip,pip install --upgrade pip
012017-11-22
相似问题
回答 1
回答 1
回答 2
回答 1
回答 1