本系列匯總,請查看這里:https://www.cnblogs.com/uncleyong/p/17947601
創(chuàng)建項目:輸入Location、選擇New environment using-Virtualenv,其它保持默認(rèn)即可
界面展示:解釋器是虛擬環(huán)境中的解釋器
venv文件夾內(nèi)容
說明:通過pycharm創(chuàng)建的虛擬環(huán)境,pip和setuptools的版本都比命令方式創(chuàng)建的要低
需要升級版本,否則安裝模塊可能報錯:
python -m pip install --upgrade --force pip文章來源:http://www.zghlxwxcb.cn/news/detail-783492.html
python -m pip install --upgrade setupTools文章來源地址http://www.zghlxwxcb.cn/news/detail-783492.html
到了這里,關(guān)于python虛擬環(huán)境系列(四):pycharm中創(chuàng)建項目時直接創(chuàng)建虛擬環(huán)境的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!