我开始学习python,我使用pycharm,mac,并且尝试导入mate扩展包。.我在python文件的开头添加了这一行:"from mate import *"
,但它不起作用,我尝试安装mate
软件包,每次执行此操作都会收到此错误,
我也将此行放在终端"python setup.py install"
中,但找不到setup.py
...
需要一些帮助,谢谢:)
Collecting mate
Using cached https://files.pythonhosted.org/packages/ee/fd/1089e5b33e0590f6201c3c9b50014dabf9ccaeb2e2546c29cc4abf06e425/mate-0.2.0.tar.gz
Complete output from command python setup.py egg_info:
Download error on https://pypi.org/simple/vcversioner/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1051) -- Some packages may not be found!
Couldn't find index page for 'vcversioner' (maybe misspelled?)
Download error on https://pypi.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1051) -- Some packages may not be found!
No local packages or working download links found for vcversioner>=2.16.0.0
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/m3/2d4zt3717c11xbz6fr5ghfkr0000gn/T/pycharm-packaging/mate/setup.py", line 39, in <module>
classifiers=classifiers,
File "/Users/Daniel/Developer/Python/PythonFundamentals/venv/lib/python3.7/site-packages/setuptools/__init__.py", line 142, in setup
_install_setup_requires(attrs)
File "/Users/Daniel/Developer/Python/PythonFundamentals/venv/lib/python3.7/site-packages/setuptools/__init__.py", line 137, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "/Users/Daniel/Developer/Python/PythonFundamentals/venv/lib/python3.7/site-packages/setuptools/dist.py", line 586, in fetch_build_eggs
replace_conflicting=True,
File "/Users/Daniel/Developer/Python/PythonFundamentals/venv/lib/python3.7/site-packages/pkg_resources/__init__.py", line 780, in resolve
replace_conflicting=replace_conflicting
File "/Users/Daniel/Developer/Python/PythonFundamentals/venv/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1063, in best_match
return self.obtain(req, installer)
File "/Users/Daniel/Developer/Python/PythonFundamentals/venv/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1075, in obtain
return installer(requirement)
File "/Users/Daniel/Developer/Python/PythonFundamentals/venv/lib/python3.7/site-packages/setuptools/dist.py", line 653, in fetch_build_egg
return cmd.easy_install(req)
File "/Users/Daniel/Developer/Python/PythonFundamentals/venv/lib/python3.7/site-packages/setuptools/command/easy_install.py", line 673, in easy_install
raise DistutilsError(msg)
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('vcversioner>=2.16.0.0')
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/m3/2d4zt3717c11xbz6fr5ghfkr0000gn/T/pycharm-packaging/mate/
答案 0 :(得分:1)
答案 1 :(得分:0)
我找到了解决方案,看来是 需要我下载一个错过的软件包“ vcversioner”。 https://pypi.org/project/vcversioner/ 没有这个软件包,我无法将新软件包下载到pycharm 我用这条推荐线下载了vcversioner-> pip install vcversioner 并解决了问题