我已经安装了Python2.7(在Windows764位中是默认的),还在一个叫做Python3的环境中安装了Python3。
我想使用Spyder作为我的IDE。我已经在我的Python3环境中安装了Spyder3,但是当我打开Spyder3(从我的Python3环境中)时,它会打开Python2.7的Spyder,而不是我所希望的Python3.5。)我也不知道原因。
我做过TOOLS--Preferences--Python Interpreter -- Use the following Python interpreter: C:\Users\16082834\AppData\Loc
我安装了python3.7,但也安装了python3.4。例如:
$ python3
Python 3.4.3 (default, Nov 12 2018, 22:25:49)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
和:
$ python3.7
Python 3.7.0 (default, Jun 28 2018, 00:00:00)
[GCC 4.8.4] on linux
Typ
编辑:我现在已经通过遵循修复了这个问题
我试着用朱庇特笔记本和anaconda。我已经安装了anaconda,当我在shell中运行python时,它有正确的anadonda sys.path:
python
Python 3.7.4 (default, Aug 13 2019, 20:35:49)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>
尝试使用conda安装tensorflow,但它抛出了一个规范冲突错误。我没有安装python 3.5
conda install -c conda-forge tensorflow
Fetching package metadata ...............
Solving package specifications: .
UnsatisfiableError: The following specifications were found to be in conflict:
- python 3.6*
- tensorflow -> python 3.5*
Use
我正在运行Django项目,没有任何问题。直到我重新安装了Windows,然后重新安装了vscode!现在我正在运行Django项目,vscode显示以下错误:
Error: no python at C:\Users\AccountName\AppData\Local\Programs\Python\Python38-32\python.exe