python安裝模塊及模塊安裝路徑配置


安裝模塊:

pip install 模塊名

利用豆瓣源指定路徑安裝:

pip install -i http://pypi.douban.com/simple/ paramiko --trusted-host pypi.douban.com --target=E:\pythondir\venv\Lib\site-packages

永久設置pip源

pip3.9 config set global.index-url https://pypi.douban.com/simple/

 修改默認安裝路徑:

1.python -m site --help查看site目錄配置路徑,也就是安裝模塊配置的路徑

 

 2.修改路徑

 

 

 3.查看效果,路徑后面提示“exists”才是正確的

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM