Ubuntu18.04 virutalenv报错:pip._vendor.requests.exceptions.InvalidSchema: Missing dependencies for SOCKS support.

使用virtualenv创建不同环境时,始终大面积报错,其中最重要的一行是:
pip._vendor.requests.exceptions.InvalidSchema: Missing dependencies for SOCKS support.
大概报错如下:



其实很简单,虽然我有梯子,但是没有配置在terminal中配置好,只要设置为自己的代理即可:

export all_proxy="https://127.0.0.1:1080/"

原文地址:https://www.cnblogs.com/huangming-zzz/p/11438302.html

时间: 2024-11-01 19:32:39

Ubuntu18.04 virutalenv报错:pip._vendor.requests.exceptions.InvalidSchema: Missing dependencies for SOCKS support.的相关文章

Ubuntu12.04开机报错:could not update ICEauthority file /home/user/.ICEauthority 解决

产生原因:误将/home/user目录的用户变成了root,所以无法更新ICE导致开机警告 解决方法: 1.使用guest登录 2.打开一个console 3.Ctrl + Alt +F1 进入安全模式 4.使用你的用户名登录 5.sudo chown -R user:user /home/$user/.ICEauthority 或 sudo chown -R user:user /home/$user/.* user为你自己的用户名 sudo chmod 644 /home/$USER/.IC

报错requests.exceptions.InvalidSchema: No connection adapters were found for

刚开始学习,使用requests时,敲了点demo 1 import requests 2 3 params = { 4 "name": "name", 5 "password": "高宇博" 6 } 7 8 res = requests.get("127.0.0.1:8000", params=params) 结果出现错误 C:\Users\gaoyu\Envs\py_path1\Scripts\pyth

django配置使用mysql数据库运行报错:django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named 'MySQLdb'

今天在把django的默认数据库sqlite3切换为MySQL数据库时报错:django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named 'MySQLdb' 报错原因:django虚拟环境没有安装pymysql模块 解决: 先安装pymysql:pip install pymysql 然后在项目的 init.py 文件中添加以下代码: 把django的默认数据库sqlite3切

Mybatis缓存报错org.apache.ibatis.exceptions.PersistenceException

错误信息如下: org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: org.apache.ibatis.cache.CacheException: Error deserializing object. Cause: java.lang.ClassNotFoundException: com.kytsoft.model.Adminlink ### Cause: org.apa

【Python + Selenium】初次用IE浏览器之报错:selenium.common.exceptions.WebDriverException: Message: Unexpected error launching Internet Explorer. Protected Mode settings are not the same for all zones.

初次用IE浏览器运行自动化程序时,报错:selenium.common.exceptions.WebDriverException: Message: Unexpected error launching Internet Explorer. Protected Mode settings are not the same for all zones. Enable Protected Mode must be set to the same value (enabled or disabled

pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

用pip安装tornado库: python -m pip install tornado 出现问题一: Could not fetch URL https://pypi.org/simple/twisted/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/twis

错误:pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. 上官瑾文 2018-07-26 14:57:34 浏览45376 python docker shell 镜像 Image pip read dockerfile ReadTimeoutError 场景 在用Dockerfile制作镜像的时候总是

去除 \ufeff——访问网址或读取文件莫名其妙无法读取错误——raise InvalidSchema("No connection adapters were found for '%s'" % url) requests.exceptions.InvalidSchema: No connection adapters were found for

raise InvalidSchema("No connection adapters were found for '%s'" % url)requests.exceptions.InvalidSchema: No connection adapters were found for 访问的网址明明没有问题,却报以上的错误,还以为requests库出问题了呢. 细心排查一下你会发现网址前面可能会有\ufeff这个字符,这就是UFT-8编码导致的. 把 UTF-8 编码 改成 UTF-

报错解决DateTimeField *** received a naive datetime (***) while time zone support is active

这是一个跟时区有关的问题,报错中说到datetime字段得到一个naive datetime,而不是支持time zone的active datetime由于Django的设置中米哦人USE_TZ设置为True,Django会自动根据所设的时区对时间进行转换,所以程序中和数据保存的时间都转UTC时间,只有模版渲染时会把时间转为TIME_ZONE所设置的时区的时间. 使用datetime.datetime.utcnow()输出的是不带时区的utc时间,称为naive time rom dateti