python pycharm 包 安装问题
20211006
https://blog.csdn.net/anshuai_aw1/article/details/83749395
windows pyfm安裝
20210930
在pycharm中設置為content_root的意思就是把這個路徑加入系統環境變量
https://blog.csdn.net/lty_sky/article/details/104934288
pycharm中content root 和 source folder區別
20210916
http://www.manongjc.com/detail/19-jubsipodirpvdvv.html
pip安裝requirement
重啟pycharm 更新目錄索引
20210825
需要上面的格式
pip install -r requirements.txt
軟件批量安裝
sasl 安裝失敗 從下面連接下載后再安裝
https://www.lfd.uci.edu/~gohlke/pythonlibs/#sasl
pypi包下載源
20210820
https://www.cnblogs.com/givemelove/p/9728757.html
python setup 包安裝
bin是編譯后的文件 src是源碼文件
下載bin文件 怎么這里需要下載src
下載 tar.gz 包,然后直接 pip instal xxx.tar.gz
20210819
如果第一pip 安裝很慢 應該先更新pip
python -m pip install --upgrade pip
20210712
https://blog.csdn.net/weixin_30727835/article/details/96665538
bsddb3 不能安裝的問題
Fatal error in launcher: Unable to create process using '"d:\python39\python.exe" "D:\python39\Scripts\pip3.exe" install scikit-learn': ???????????
因為python.exe 改成了python39.exe
20210114
pycharm 一閃而關 一閃而過
任務管理器關掉python
20210105
ModuleNotFoundError: No module named 'yaml'
使用 pip 安裝該包即可,但要注意的是安裝的包名不是 yaml 而是 pyyaml,即 pip install pyyaml。
20201215
ModuleNotFoundError: No module named 'sklearn.preprocessing._label'
在linux上報上面的錯誤 需要從windows 系統下找到這個文件覆蓋一下
pip install sklearn的時候會出現 上面文件的路徑
cd /storage/sdc/jupyterhub/workspaceaohd/.localb/python3.6/site-packages
ERROR: Failed building wheel for line-profiler
Failed to build line-profiler
這種情況下 一般先下載安裝文件 然后再安裝都能解決
在每個虛擬環境下裝包的時候 最好切換到此虛擬環境下的路徑
20201204
通過執行 pip3 install Scikit-learn==0.20.4 包名=任意版本 如果這個版本不存在的話
其會列出所有的版本
20201201
from sklearn.externals import joblib ImportError: cannot import name ‘joblib‘
https://blog.csdn.net/aclplr/article/details/107183926
Consider using the --user option or check the permissions.
pip3 install --user Scikit-learn0.20.4
或者多執行一次 pip3 install Scikit-learn0.20.4
20201127
from google.protobuf.pyext import _message
ImportError: DLL load failed: 找不到指定的程序。
使用tensorflow跑的時候報了ImportError: DLL load failed的錯誤,原因有很多,往上看是一個 from google.protobuf.pyext import _message的錯誤,應該是protobuf版本的問題,
在自動安裝了tensorflow時, protobuf安裝的是最新版本3.6.1, 出現了不兼容的問題。
更換為 protobuf 3.6.0即可(pip install protobuf==3.6.0)
https://blog.csdn.net/u012193416/article/details/86301899
20201126
https://www.cnblogs.com/xueweihan/p/4981704.html
pip所有命令
pip search numpy 在庫中查找所有包名中含 numpy的包
標題用pycharm導入numpy包的和使用時報錯:RuntimeError: The current Numpy installation ('D:\python3.6\lib\site-packages\numpy\init.py
降低numpy的版本
is not a supported wheel on this platform
https://blog.csdn.net/kyle1314608/article/details/110176314
Python36 -m pip install --upgrade pip
pip更新命令
20201125
Python的-m參數
1、在命令行中啟動Python腳本的時候,經常會用到-m參數,那么-m起了什么作用呢?
2、先看看 python --help 給出的信息:
1.ERROR: Could not find a version that satisfies the requirement yaml (from versions: none)
run library module as a script (terminates option list)
意思是將庫中的python模塊用作腳本去運行。
3、常用例子
python -m SimpleHTTPServer #python2中啟動一個簡單的http服務器
python -m http.server #python3中啟動一個簡單的http服務器
4、將模塊當做腳本去啟動有什么用?
python xxx.py
python -m xxx.py
這是兩種加載py文件的方式:
1叫做直接運行
2相當于import,叫做當做模塊來啟動
不同的加載py文件的方式,主要是影響sys.path這個屬性。sys.path相當于Linux中的PATH
>>> import sys
>>> sys.path
['', 'D:\\Python3\\lib\\site-packages\\django-1.10.1-py3.5.egg', 'D:\\Python3\\l
ib\\site-packages\\psycopg2-2.6.2-py3.5-win32.egg', 'D:\\Python3\\python35.zip','D:\\Python3\\DLLs', 'D:\\Python3\\lib', 'D:\\Python3', 'D:\\Python3\\lib\\site
-packages']
這就是當前Python解析器運行的環境,Python解析器會在這些目錄下去尋找依賴庫。
詳細的區別可以參考這篇博文–>http://www.cnblogs.com/xueweihan/p/5118222.html
直接啟動是把run.py文件,所在的目錄放到了sys.path屬性中。
模塊啟動是把你輸入命令的目錄(也就是當前路徑),放到了sys.path屬性中***
再看
#使用如下命令安裝yaml
pip install pyyaml
pip install -r requirements.txt
需求文件的安裝
總結
以上是生活随笔為你收集整理的python pycharm 包 安装问题的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 使virtualenv从您的全局站点包继
- 下一篇: 查看分析网络层次