Python 如何在 Windows 上启动 Spyder IDE
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/44956371/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to start Spyder IDE on Windows
提问by Raghu
I downloaded spyder using the
我使用
pip install spyder
pip install spyder
in my windows 10 32-bit operating system, but i dont see any desktop icons or exe files to start running the IDE. I downloaded spyder 3, any my python is 3.6. I even tried creating a shortcut of spyder.exe from the Python3.6/Scripts folder, but it won't open.
在我的 Windows 10 32 位操作系统中,但我没有看到任何桌面图标或 exe 文件来开始运行 IDE。我下载了 spyder 3,我的任何 python 都是 3.6。我什至尝试从 Python3.6/Scripts 文件夹中创建 spyder.exe 的快捷方式,但它无法打开。
回答by Charlie
The name of the spyder executable was changed to spyder3.exe in python version 3. I install pyqt5 and spyder via pip and was able to launch spyder3. I first tried without installing pyqt5 and nothing happened. Once I installed pyqt5, then spyder 3 opened.
spyder 可执行文件的名称在 python 版本 3 中更改为 spyder3.exe。我通过 pip 安装了 pyqt5 和 spyder,并且能够启动 spyder3。我第一次尝试没有安装 pyqt5 并没有发生任何事情。一旦我安装了 pyqt5,然后 spyder 3 就打开了。
Try the following from a windows cmd.exe prompt:
在 windows cmd.exe 提示符下尝试以下操作:
C:\Users\..>pip install pyqt5
C:\Users\..>pip install spyder
C:\Users\..>spyder3
回答by Kenneth Cascio
I had the same problem after setting up my environment on Windows 10. I have Python 3.6.2 x64 installed as my default Python distribution and is in my PATH so I can launch from cmd prompt.
在 Windows 10 上设置环境后,我遇到了同样的问题。我安装了 Python 3.6.2 x64 作为我的默认 Python 发行版,并且在我的 PATH 中,因此我可以从 cmd 提示符启动。
I installed PyQt5 (pip install pyqt5
) and Spyder (pip install spyder
) which both installed w/out error and included all of the necessary dependencies.
我安装了 PyQt5 ( pip install pyqt5
) 和 Spyder ( pip install spyder
),它们都安装了没有错误并包含所有必要的依赖项。
To launch Spyder, I created a simple Python script (Spyder.py):
为了启动 Spyder,我创建了一个简单的 Python 脚本 (Spyder.py):
# Spyder Start Script
from spyder.app import start
start.main()
Then I created a Windows batch file (Spyder.bat):
然后我创建了一个 Windows 批处理文件(Spyder.bat):
@echo off
python c:\<path_to_Spyder_py>\Spyder.py
Lastly, I created a shortcut on my desktop which launches Spyder.bat and updated the icon to one I downloaded from the Spyder github project.
最后,我在桌面上创建了一个启动 Spyder.bat 的快捷方式,并将图标更新为我从 Spyder github 项目下载的图标。
Works like a charm for me.
对我来说就像一种魅力。
回答by Prithvi Venu
Try these commands in order
按顺序尝试这些命令
pip3 install spyder
spyder3
回答by Hisham Sliman
Try the command spyder3
If you check the scripts folder you'll find spyder3.exe
试试这个命令spyder3
如果你检查脚本文件夹,你会发现 spyder3.exe
回答by Louis Yang
As stated in the documentationof Spyder, you need to install PyQt5
first.
如Spyder的文档中所述,您需要先安装PyQt5
。
Open a Command Prompt as Administrator, then run:
以管理员身份打开命令提示符,然后运行:
pip install pyqt5
pip install spyder
Then you can find the spyder3.exe
in the Python3.6/Scripts folder. You can also make a shortcut to it. No need for Anaconda.
然后你可以spyder3.exe
在 Python3.6/Scripts 文件夹中找到。您也可以创建一个快捷方式。不需要蟒蛇。
回答by TheoretiCAL
Open a command prompt. Enter the command spyder
. Does anything appear? If an exception is preventing it from opening, you would be able to see the reason here. If the command is not found, update your environment variables to point to the Python3.6/Scripts folder, and run spyder
again (in a new cmd prompt).
打开命令提示符。输入命令spyder
。有什么出现吗?如果异常阻止它打开,您将能够在此处查看原因。如果未找到该命令,请更新您的环境变量以指向 Python3.6/Scripts 文件夹,然后spyder
再次运行(在新的 cmd 提示符下)。
回答by Amy21
If you are using Anaconda execute the following commands and your life will be saved!
如果您正在使用 Anaconda,请执行以下命令,您的生命将得到拯救!
conda update qt pyqt
conda update spyder
回答by Umer
In case if you want the desktop icon
如果你想要桌面图标
In desktop, create a new shortcut, in Location paste this
在桌面上,创建一个新的快捷方式,在位置粘贴这个
%comspec% /k spyder3
%comspec% /k spyder3
then type the name Spyder,
然后输入名称 Spyder,
Now you may have Desktop Icon for opening Spyder
现在您可能拥有用于打开Spyder 的桌面图标
回答by T.Todua
method 1:
方法一:
spyder3
method 2:
方法二:
python -c "from spyder.app import start; start.main()"
method 3:
方法三:
python -m spyder.app.start
回答by K_holla
After pip install spyder
give this command
之后pip install spyder
给这个命令
pip install --upgrade spyder
This command will update all Spyder dependencies.
此命令将更新所有 Spyder 依赖项。
Now in command prompt(cmd) navigate to the scripts folder in your python directory. In my system the path is C:\Users\win10\AppData\Local\Programs\Python\Python36-32\Scripts so i use the following command in command prompt.
现在在命令提示符(cmd)中导航到 python 目录中的脚本文件夹。在我的系统中,路径是 C:\Users\win10\AppData\Local\Programs\Python\Python36-32\Scripts 所以我在命令提示符下使用以下命令。
cd C:\Users\win10\AppData\Local\Programs\Python\Python36-32\Scripts
once you are inside scripts directory type spyder3 and press enter and spyder ide starts.
进入脚本目录后,输入 spyder3 并按回车键,spyder ide 将启动。
C:\Users\win10\AppData\Local\Programs\Python\Python36-32\Scripts>spyder3