![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
云裳容
高级CtrlCV工程师
展开
-
使用virtualenvwrapper指定python版本创建虚拟环境
在系统环境变量中添加 WORKON_HOME ,用来指定新建的虚拟环境的存储位置,如过未添加,默认位置为 %USERPROFILE%\Envs。-p: 指定根据哪个python创建新的虚拟环境,一般是期望python的exe可执行文件的路径。5、进入当前虚拟环境的包目录(site-packages)env_name: 是创建虚拟环境的名字。6、直接显示当前虚拟环境下所有包。一、添加环境变量(可选)1、退出当前虚拟环境。2、查看现有虚拟环境。原创 2023-04-09 01:58:05 · 625 阅读 · 0 评论 -
Linux下的Python3.6报错ModuleNotFoundError: No module named '_ssl'
在python3中导入ssl模块时报错:(py3) [root@localhost Python-3.6.3]# python3Python 3.6.3 (default, Nov 19 2018, 14:18:18)[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] on linuxType "help", "copyright", "credits" or ...原创 2020-02-13 19:46:07 · 3907 阅读 · 0 评论 -
Anaconda 修改镜像源
来源:https://mirrors.tuna.tsinghua.edu.cn/news/restore-anaconda/修改镜像源:通过 conda config 命令生成配置文件在CMD命令行输入以下两条命令:conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/f...原创 2019-06-23 19:05:16 · 1419 阅读 · 0 评论 -
Windows中使用conda activate激活环境
就是这么简单!原创 2019-06-04 18:16:39 · 25915 阅读 · 2 评论 -
Python创建虚拟环境
先安装virtualenv,Windows下要加winvirtualenvwrapper是virtualenv的扩展管理包,用于更方便管理虚拟环境pip install virtualenvwrapper-win然后就可以创建虚拟环境了,如下C:\Users\robot>mkvirtualenv test1Using base prefix 'c:\\programd...原创 2019-01-18 10:37:18 · 2453 阅读 · 0 评论 -
pip下载速度慢?更换成国内镜像
Linux,修改 ~/.pip/pip.conf (没有就创建一个)文件内容如下:[global]index-url = https://pypi.tuna.tsinghua.edu.cn/simple[install]trusted-host=mirrors.aliyun.comWindows,在user目录你对应的用户文件夹下创建一个pip目录,如:C:\Users\che...原创 2019-01-18 10:23:10 · 2225 阅读 · 0 评论 -
pip升级出错PermissionError: [WinError 5] 拒绝访问。
PermissionError: [WinError 5] 拒绝访问。: 'c:\\programdata\\anaconda3\\lib\\site-packages\\pip\\basecommand.py'可能是因为权限不够,修改文件夹权限原创 2019-01-18 10:13:39 · 1822 阅读 · 0 评论