V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  xxbing  ›  全部回复第 7 页 / 共 7 页
回复总数  124
1  2  3  4  5  6  7  
2018-04-21 22:16:48 +08:00
回复了 xxbing 创建的主题 Python import requests 出错,搜了很多,没解决,求教.
@Hstar
```
from urllib3.exceptions import DependencyWarning
```
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name DependencyWarning
```
```
import sys,json,urllib3,MySQLdb
```
都没有错误.

```
import sys; print(sys.path)
```
返回
```
['', 'C:\\Windows\\system32\\python27.zip', 'D:\\Python27\\DLLs', 'D:\\Python27\
\lib', 'D:\\Python27\\lib\\plat-win', 'D:\\Python27\\lib\\lib-tk', 'D:\\Python27
', 'D:\\Python27\\lib\\site-packages']
```
2018-04-21 22:14:25 +08:00
回复了 xxbing 创建的主题 Python import requests 出错,搜了很多,没解决,求教.
@blless 没有.
2018-04-21 20:15:13 +08:00
回复了 xxbing 创建的主题 Python import requests 出错,搜了很多,没解决,求教.
@zeyexe 没用.我删除了 4 个依赖库+requests 库.再使用阿里云的源重装也一样.
1  2  3  4  5  6  7  
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   5195 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 08:50 · PVG 16:50 · LAX 00:50 · JFK 03:50
♥ Do have faith in what you're doing.