搭環境時遇到的各種問題

2021-09-12 09:29:43 字數 1818 閱讀 3989

jupyter 沒有python3

參考:jupyter notebook 裡面沒有python3怎麼辦? 我幫您!

出現的問題:pip3沒法安裝。

pip3安裝:

顯示pip3安裝成功,但是卻無法使用。實際上是沒有正確安裝。

sudo apt-get remove python3-pip; sudo apt-get install python3-pip
參考:sudo apt-get remove python3-pip; sudo apt-get install python3-pip

參考:pycharm連線遠端伺服器並實現遠端除錯

檢視python3』s interpret的位置:which python3 參考:linux 檢視python安裝路徑,版本號

錯誤:

importerror: traceback (most recent call last):

file "/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in from tensorflow.python.pywrap_tensorflow_internal import *

file "/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in _pywrap_tensorflow_internal = swig_import_helper()

file "/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper

_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)

importerror: libcublas.so.9.0: cannot open shared object file: no such file or directory

failed to load the native tensorflow runtime.

應該用python3才對,但是這裡用的時python2.和同學交流後,決定用虛擬環境。

使用anaconda

linux 安裝 anaconda linux安裝anaconda

anacoda設定虛擬環境 使用anacoda設定tensorflow的虛擬環境

重新安裝jupyter

pip3 install ipykernel

python3 -m ipykernel install --user tersorflow_gpuenv(不限定名字但是建議和虛擬環境名字相同)

或者直接用conda安裝

conda install jupyter
設定jupyter遠端連線

scp -i ~/.ssh/id_rsa  (-r) 需要傳輸的檔案位址 root@remote_ip:/拷貝的位址
importerror: no module named 『google』

情景:import tensorflow的時候出現該錯

解決方法:pip3 install protobuf

pip3已安裝但是無法使用-> 安裝出現了錯誤,移除後重新安裝即可。

搭建集群時遇到各種奇葩問題的大招

用自己電腦搭建hadoop集群的時候總是會遇到各種奇葩的問題,因為虛擬機器總是會比真實的環境差很多的,有些奇葩的問題真是讓我鬱悶不行不行的 像這個問題,搭了三遍的集群遇見各種奇葩問題,最後找了乙個終極大招 但是,但是,前提是,新搭的集群,如果hdfs裡面已經有資料了,那就別用了,因為會把你的hado...

在開發IE外掛程式時,遇到的各種問題記錄

問題1.win8 ie10 設定斷點,不起作用。但是messagebox可以列印。原因 要除錯,ie需要處於單程序狀態。需要修改登錄檔項 hkey current user software microsoft internet explorer main tabprocgrowth 將tabpro...

npm run dev時遇到的問題

第一篇部落格 npm run dev時 19 verbose npm v6.14.4 20 error code elifecycle 21 error errno 1 22 error vue admin template 4.2 1 dev vue cli service serve 22 er...