简体   繁体   English

Python 交互模式在我的 anaconda3 环境中不起作用

[英]Python interactive mode does not work in my anaconda3 environment

Once I try to run python on my conda environment it blcok like this and nothing change:一旦我尝试在我的 conda 环境中运行 python,它就会像这样运行并且没有任何变化:

(python3) user todoapp
$ python

Knowing that python was intalled in my conda env using conda create -n python3 python=3 and I have runned my env using source activate python3 .知道使用conda create -n python3 python=3在我的 conda env 中安装了conda create -n python3 python=3并且我已经使用source activate python3我的 env。 What suprising me is once I run ipython this work normally but python no :(.令我感到ipython是,一旦我运行ipython这项工作正常但python没有 :(。

I have searched in the net but nothing solved my issue.我在网上搜索过,但没有解决我的问题。 Is theire any option?他们有什么选择吗?

You're naming your virtual environment python3 ??您将虚拟环境命名为python3 ?? That's the same alias for actual Python 3 binary file in many operating systems, don't do that.这与许多操作系统中实际 Python 3 二进制文件的别名相同,不要这样做。
Create another virtual environment with another name (or clone that env to another name) and move your project files to it.使用另一个名称创建另一个虚拟环境(或将该 env 克隆为另一个名称)并将您的项目文件移动到其中。 Then remove your python3 env.然后删除你的python3 env。
See https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html on the related commands and paths.有关相关命令和路径,请参阅https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM