小编深有体会,在刚开始用pycharm跑python的项目的时候,一时间不知道如何下手,特别是作为一个新手小白,这里总结了一份新手避坑指南,主要是新建虚拟环境(生成一个项目对应的解释器)以及安装依赖的问题,需要的自取~
pip install -r requirements.txt
!!! 注意,这里可能存在两个下载失败的问题:
# 全局使用阿里的源 pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
阿里云 http://mirrors.aliyun.com/pypi/simplel/ 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simplel/ 豆瓣(douban) http://pypi.douban.com/simplel/ 清华大学 https://pypi.tuna.tsinghua.edu.cn/simplel/ 中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simplel/