pycharm导包错误处理办法

今天写了一个项目,从虚拟机里面到出到物理机里面重新验证的时候导入requirements.txt里面的包报错,然后搜索一大堆,然后升级一堆东西,没用.于是又从报错代码入手,下面是报错代码↓↓↓↓↓

Command “python setup.py egg_info” failed with error code 1 in C:\Users\xxhaa\AppData\Local\Temp\pip-install-0eis_4zw\django-haystack\

翻译过来没什么用这个代码,于是从最开始的错误地方开始.代码如下

Complete output from command python setup.py egg_info:
Download error on https://pypi.org/simple/setuptools_scm/: ssl.c:761: The handshake operation timed out – Some packages may not
be found!
Download error on https://pypi.org/simple/setuptools-scm/: The read operation timed out – Some packages may not be found!
Couldn’t find index page for ‘setuptools_scm’ (maybe misspelled?)
Download error on https://pypi.org/simple/: ssl.c:761: The handshake operation timed out – Some packages may not be found!
No local packages or working download links found for setuptools_scm
Traceback (most recent call last):
File “”, line 1, in
File “C:\Users\xxhaa\AppData\Local\Temp\pip-install-0eis_4zw\django-haystack\setup.py”, line 71, in
setup_requires=[‘setuptools_scm’],
File "C:\Users\xxhaa\Desktop\myproject\hhyqshop_36\lib\site-packages\setuptools-40.8.0-py3.6.egg\setuptools_init
.py", line 1
44, in setup
File "C:\Users\xxhaa\Desktop\myproject\hhyqshop_36\lib\site-packages\setuptools-40.8.0-py3.6.egg\setuptools_init
.py", line 1
39, in install_setup_requires
File “C:\Users\xxhaa\Desktop\myproject\hhyqshop_36\lib\site-packages\setuptools-40.8.0-py3.6.egg\setuptools\dist.py”, line 724,
in fetch_build_eggs
File "C:\Users\xxhaa\Desktop\myproject\hhyqshop_36\lib\site-packages\setuptools-40.8.0-py3.6.egg\pkg_resources_init
.py", lin
e 782, in resolve
File “C:\Users\xxhaa\Desktop\myproject\hhyqshop_36\lib\site-packages\setuptools-40.8.0-py3.6.egg\pkg_resources_init_.py”, lin
e 1065, in best_match
File “C:\Users\xxhaa\Desktop\myproject\hhyqshop_36\lib\site-packages\setuptools-40.8.0-py3.6.egg\pkg_resources_init_.py”, lin
e 1077, in obtain
File “C:\Users\xxhaa\Desktop\myproject\hhyqshop_36\lib\site-packages\setuptools-40.8.0-py3.6.egg\setuptools\dist.py”, line 791,
in fetch_build_egg
File “C:\Users\xxhaa\Desktop\myproject\hhyqshop_36\lib\site-packages\setuptools-40.8.0-py3.6.egg\setuptools\command\easy_install
.py”, line 673, in easy_install
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse(‘setuptools_scm’)

----------------------------------------

Command “python setup.py egg_info” failed with error code 1 in C:\Users\xxhaa\AppData\Local\Temp\pip-install-0eis_4zw\django-haystack\

从上面细读来开,从蓝色的地方开始出错,下载egg_info包的时候出错了,可是错误并不是egg本身,而是绿色的部分,没有找到setuptools_scm导致egg_info无法安装,于是我抱着试试的心态执行了pip install -i https://pypi.douban.com/simple/ setuptools_scm,让后成功安装 setuptools_scm

在这里插入图片描述

后面就是一片顺风
在这里插入图片描述
这次的事情告诉我一定一定要认真的一行行的读代码.

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

辉煌仪奇

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值