The title says it all i want to be able to use the packages that are installed with anaconda with idle so are there any ways of making this work? When i try to import packages with idle that i installed using anaconda it says package not found. I need some help please and thank you in advance.
标题说我希望能够使用与anaconda一起安装的软件包,所以有没有办法使这项工作?当我尝试导入我使用anaconda安装的空闲包时,它说包找不到。我需要一些帮助,并提前感谢你。
2 个解决方案
#1
0
The IDLE that comes with python 3.5.2 can only be run by python 3.5.2. Code you submit to python 3.5.2 through that IDLE can normally only access packages installed for 3.5.2, plus your own code. I believe Anaconda 3.6.3 comes with Python 3.6.3 and the 3.6.3 standard library, including the 3.6.3 version of idlelib.
python 3.5.2附带的IDLE只能由python 3.5.2运行。您通过IDLE提交给python 3.5.2的代码通常只能访问为3.5.2安装的软件包以及您自己的代码。我相信Anaconda 3.6.3附带Python 3.6.3和3.6.3标准库,包括3.6.1版本的idlelib。
In order for your code to use the packages installed with anaconda, you must run your code with the anaconda binary. To run your code from IDLE with the anaconda binary, you must run IDLE with that binary instead of some other binary (like the 3.5.2 binary.
为了让您的代码使用与anaconda一起安装的软件包,您必须使用anaconda二进制文件运行代码。要使用anaconda二进制文件从IDLE运行代码,必须使用该二进制文件而不是其他二进制文件(如3.5.2二进制文件)运行IDLE。
When running Python 3.6.3 interactively, you can start IDLE 3.6.3 at a >>>
prompt with import idlelib.idle
. If you can start python 3.6.3 in a terminal (Command Prompt on Windows), then adding the arguments -m idlelib
will start IDLE.
以交互方式运行Python 3.6.3时,可以使用import idlelib.idle在>>>提示符下启动IDLE 3.6.3。如果你可以在终端(Windows上的命令提示符)中启动python 3.6.3,那么添加参数-m idlelib将启动IDLE。
On Windows, I have no idea whether or not Anaconda adds 'Edit with IDLE 3.6.3' to the right-click context menu for .py and .pyw files, the way the python.org installer does. On any system, you should be able to create a file or icon that will start 3.6.3 with IDLE, but details depend heavily on OS and version.
在Windows上,我不知道Anaconda是否将'Edit with IDLE 3.6.3'添加到.py和.pyw文件的右键单击上下文菜单中,这与python.org安装程序的方式相同。在任何系统上,您都应该能够创建一个将使用IDLE启动3.6.3的文件或图标,但细节在很大程度上取决于操作系统和版本。
#2
0
I see idle is automatically installed with Anaconda Python 3. To launch idle open windows command prompt and type the below command:
我看到使用Anaconda Python 3自动安装idle。要启动空闲的打开Windows命令提示符并键入以下命令:
idle()
In my other laptop i can also launch idle by this command on windows prompt:
在我的其他笔记本电脑中,我也可以在Windows提示符下通过此命令启动空闲:
python -m idlelib.idle
python -m idlelib.idle
Hope this helps. See this discussion for more info https://groups.google.com/a/continuum.io/forum/#!topic/anaconda/Dr8xFdKbA20
希望这可以帮助。有关详情,请参阅此讨论https://groups.google.com/a/continuum.io/forum/#!topic/anaconda/Dr8xFdKbA20
#1
0
The IDLE that comes with python 3.5.2 can only be run by python 3.5.2. Code you submit to python 3.5.2 through that IDLE can normally only access packages installed for 3.5.2, plus your own code. I believe Anaconda 3.6.3 comes with Python 3.6.3 and the 3.6.3 standard library, including the 3.6.3 version of idlelib.
python 3.5.2附带的IDLE只能由python 3.5.2运行。您通过IDLE提交给python 3.5.2的代码通常只能访问为3.5.2安装的软件包以及您自己的代码。我相信Anaconda 3.6.3附带Python 3.6.3和3.6.3标准库,包括3.6.1版本的idlelib。
In order for your code to use the packages installed with anaconda, you must run your code with the anaconda binary. To run your code from IDLE with the anaconda binary, you must run IDLE with that binary instead of some other binary (like the 3.5.2 binary.
为了让您的代码使用与anaconda一起安装的软件包,您必须使用anaconda二进制文件运行代码。要使用anaconda二进制文件从IDLE运行代码,必须使用该二进制文件而不是其他二进制文件(如3.5.2二进制文件)运行IDLE。
When running Python 3.6.3 interactively, you can start IDLE 3.6.3 at a >>>
prompt with import idlelib.idle
. If you can start python 3.6.3 in a terminal (Command Prompt on Windows), then adding the arguments -m idlelib
will start IDLE.
以交互方式运行Python 3.6.3时,可以使用import idlelib.idle在>>>提示符下启动IDLE 3.6.3。如果你可以在终端(Windows上的命令提示符)中启动python 3.6.3,那么添加参数-m idlelib将启动IDLE。
On Windows, I have no idea whether or not Anaconda adds 'Edit with IDLE 3.6.3' to the right-click context menu for .py and .pyw files, the way the python.org installer does. On any system, you should be able to create a file or icon that will start 3.6.3 with IDLE, but details depend heavily on OS and version.
在Windows上,我不知道Anaconda是否将'Edit with IDLE 3.6.3'添加到.py和.pyw文件的右键单击上下文菜单中,这与python.org安装程序的方式相同。在任何系统上,您都应该能够创建一个将使用IDLE启动3.6.3的文件或图标,但细节在很大程度上取决于操作系统和版本。
#2
0
I see idle is automatically installed with Anaconda Python 3. To launch idle open windows command prompt and type the below command:
我看到使用Anaconda Python 3自动安装idle。要启动空闲的打开Windows命令提示符并键入以下命令:
idle()
In my other laptop i can also launch idle by this command on windows prompt:
在我的其他笔记本电脑中,我也可以在Windows提示符下通过此命令启动空闲:
python -m idlelib.idle
python -m idlelib.idle
Hope this helps. See this discussion for more info https://groups.google.com/a/continuum.io/forum/#!topic/anaconda/Dr8xFdKbA20
希望这可以帮助。有关详情,请参阅此讨论https://groups.google.com/a/continuum.io/forum/#!topic/anaconda/Dr8xFdKbA20