命令"python setup.py egg_info"失败,setup.py 找不到



我开始学习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/

尝试使用pip安装依赖项。

mate位于PyPi存储库(链接(上,因此您可以使用pip install mate进行安装

我找到了一个解决方案,似乎是我需要下载一个名为"vcversioner"的软件包,但该软件包丢失了。https://pypi.org/project/vcversioner/没有这个软件包,我无法将新软件包下载到pycharm我用这句话下载了vcversione->pipinstallvcversioner它解决了问题

相关内容

  • 没有找到相关文章

最新更新