Python Can';t pip一个特定的setup.py
所以我正在尝试安装,这是运行所必需的。我已经有一段时间没有使用终端或python了。我觉得有点不对劲 我认为这里有两个错误,一个是关于SSL,第二个是关于pip试图做什么以及为什么失败。我就是无法解释这是怎么回事Python Can';t pip一个特定的setup.py,python,ssl,pip,Python,Ssl,Pip,所以我正在尝试安装,这是运行所必需的。我已经有一段时间没有使用终端或python了。我觉得有点不对劲 我认为这里有两个错误,一个是关于SSL,第二个是关于pip试图做什么以及为什么失败。我就是无法解释这是怎么回事 > user$ sudo -H pip install Dropbox/Developer/AppleScripts/iTunesaff/python-itunes/setup.py /Library/Python/2.7/site-packages/pip/_vendor/re
> user$ sudo -H pip install Dropbox/Developer/AppleScripts/iTunesaff/python-itunes/setup.py
/Library/Python/2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Exception:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 223, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 268, in run
wheel_cache
File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 268, in populate_requirement_set
wheel_cache=wheel_cache
File "/Library/Python/2.7/site-packages/pip/req/req_install.py", line 207, in from_line
wheel_cache=wheel_cache)
File "/Library/Python/2.7/site-packages/pip/req/req_install.py", line 66, in __init__
req = pkg_resources.Requirement.parse(req)
File "/Library/Python/2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2960, in parse
reqs = list(parse_requirements(s))
File "/Library/Python/2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2904, in parse_requirements
"version spec")
File "/Library/Python/2.7/site-packages/pip/_vendor/pkg_resources/__init__.py", line 2869, in scan_list
raise ValueError(msg, line, "at", line[p:])
ValueError: ('Expected version spec in', 'Dropbox/Developer/AppleScripts/iTunesaff/python-itunes/setup.py', 'at', '/Developer/AppleScripts/iTunesaff/python-itunes/setup.py')
您可能需要
python setup.py安装
而不是pip安装
,或者您可以使用pip,但为其指定包含setup.py文件的目录路径,而不是setup.py文件的实际路径。谢谢。这是一个包,所以pip到目录的路径工作得很好!