首页 » 随记 » pycharm 指定版本安装依赖包

有时候安装了几个版本的python,怎么指定版本安装包呢,直接找到路径,运行下面的命令。

如我得3.7安装在 C:PythonPython37python.exe

##### 更新pip
C:\Python\Python37\python.exe -m pip install pip --upgrade pip
## 安装pymysql 
 C:\Python\Python37\python.exe -m pip install pymysql    

##### 安装cryptography ---pymysql连接密码会用到

 C:\Python\Python37\python.exe -m pip install cryptography 

已有 3 条评论

  1. 2222223

  2. 11112

  3. OK

添加新评论