pip install pipenv 安装失败

来源:3-6 python虚拟环境之pipenv

慕瓜834326

2020-03-14 12:24:51

http://img.mukewang.com/climg/5e6c5c020914c4d214530454.jpg

http://img.mukewang.com/climg/5e6c5c020926bd4715860651.jpg

是下载用时过长吗,请问如何解决呢

写回答

2回答

好帮手乔木

2020-03-15

同学你好:

同学可以使用命令的方式安装:

可能由于网络原因会无法安装,同学可以切换国内源下载或在网络较好时重新下载即可。

例:pip install virtualenvwrapper-win -i xxxxxxxxxxxxxxxxxxx

清华:https://pypi.tuna.tsinghua.edu.cn/simple

阿里云:http://mirrors.aliyun.com/pypi/simple/

中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/

华中理工大学:http://pypi.hustunique.com/

山东理工大学:http://pypi.sdutlinux.org/ 

豆瓣:http://pypi.douban.com/simple/

如果我解决了同学的问题,请采纳!学习愉快^_^。



0

木苗

2020-03-14

参考下面的,添加临时国内镜像源

python第三方模块安装和卸载
安装python第三方模块Django,Flask,mysqlclient
A、安装方法:国内镜像安装
清华:https://pypi.tuna.tsinghua.edu.cn/simple
阿里云:http://mirrors.aliyun.com/pypi/simple/
豆瓣:http://pypi.douban.com/simple/
1、直接在cmd中键入:pip install ****
pip install django -i https://pypi.tuna.tsinghua.edu.cn/simple
python中导入:import django
pip install flask -i https://pypi.tuna.tsinghua.edu.cn/simple
python中导入:import flask
pip install mysqlclient -i https://pypi.tuna.tsinghua.edu.cn/simple
python中导入:import MySQLdb

也可以在系统中全局配置,配置好后在cmd中条用pip install就能自动使用配置好的国内镜像源了,参考方法:在用户目录下新建 pip文件夹,新建pip.ini文件,在该文件中输入index-url = https://pypi.tuna.tsinghua.edu.cn/simple,保存关闭就可以了。这里用的是清华。

0

0 学习 · 8160 问题

查看课程