我目前在Debian GNU / Linux上,并且预先安装了python2.7和python3.5,因此我再次使用make altinstall安装了python3.8。
现在我有两个版本的python3和python3.8。然后我使用pip3 install tensorflow-gpu安装了tensorflow模块,当我打开python3.8并尝试导入tensorflow时,它说找不到模块。
如果是这种情况,我该如何为python3.8安装模块?
答案 0 :(得分:1)
https://docs.python.org/3/installing/index.html这里提到如何安装相应的python库。
python2 -m pip install SomePackage # default Python 2
python2.7 -m pip install SomePackage # specifically Python 2.7
python3 -m pip install SomePackage # default Python 3
python3.8 -m pip install SomePackage # specifically Python 3.8