原文:python: Defaulting to user installation because normal site-packages is not writeable

某日使用pip安裝pytest包時,一直遇到提示信息 Defaulting to user installation because normal site packages is not writeable 。 剛開始忽略了這個提示,package也能安裝成功,但是每次都是加入到 C: Users user AppData Roaming Python... 文件夾中, 且在cmd中運行pyt ...

2021-08-24 10:30 0 1861 推薦指數:

查看詳情

如何查找python安裝包的路徑site-packages?

使用命令: python -m site python -m site --user-site 注意當查看指定版本的python的安裝包時,需要指定python版本,比如python2.7.15 -m site 參考:https://stackoverflow.com ...

Fri Nov 23 08:11:00 CST 2018 0 3585
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM