ubuntu 20.04使用自带Python3创建虚拟环境

  • 分类: Linux Python
  • 发表日期:2021-08-17 12:07:00
  • 最后修改:2021-08-17 12:07:00

一、安装Python依赖

sudo apt update
sudo apt install python3-dev python3-pip python3-venv

 

二、修改pip源

1. 进入家目录
   cd ~

2. 新建 .pip 文件夹
   mkdir .pip   
 
3. 进入 .pip 文件夹
   cd .pip             

4. 编辑pip.conf
   vim pip.conf

   文件中写入:

     [global]

     index-url=https://pypi.douban.com/simple

     timeout = 6000

     [install]

     trusted-host=pypi.tuna.tsinghua.edu.cn

     disable-pip-version-check = true

 

三、创建虚拟环境

python3 -m venv venv_name

 

post
2021年7月9日 09:40 原创 草稿

针对情报平台的多种 es dsl 测试

post
2021年7月13日 09:36 原创
post
2021年7月30日 12:01 原创
post
2021年7月30日 12:15 原创
post
2021年7月30日 15:07 原创
post
2021年7月30日 15:13 原创
post
2021年7月30日 15:18 原创
post
2021年7月30日 15:24 原创
post
2021年7月30日 16:09 原创
post
2021年7月30日 16:02 原创
post
2021年8月16日 15:28 原创
post
2021年8月16日 20:01
post
2021年8月31日 15:42 原创
post
2021年9月3日 15:30
post
2021年10月8日 16:17
post
2021年10月13日 11:43
post
2021年10月21日 15:47 原创
post
2021年10月25日 11:27
post
2022年1月3日 10:05 原创
post
2022年2月24日 15:01 原创
post
2022年3月10日 18:35 原创
post
2022年7月7日 10:50

0 评论

大哥整点话呗~