【发布时间】:2020-01-19 01:02:58
【问题描述】:
我什么都试过了。我在我的 Windows 计算机上安装了 Python 3.87 和 Anaconda 3。昨天还不错,今天打不开了。
我尝试卸载并重新安装所有内容,但仍然没有成功。如果我尝试打开 anaconda,看起来程序正在开始打开,但它只是停止并且不执行任何操作。尝试以管理员身份运行,尝试将所有正确的路径添加到系统属性下的环境变量事物中。
当我在终端中尝试“conda update conda”时,它会开始列出我在桌面文件夹中进行的速成课程中的 .py 文件中的内容。我不明白如何解决这个问题。
我只是想用 Spyder 运行 Python,这样我就可以学习基本的编码。
C:\Users\Karmic Dreamwork.000>**conda update conda**
ctrl+enter runs script
You can add (+), subtract (-), multiply (*), and divide (/) integers in Python.
numbers with a decimal are called a 'float'
how to fix type errors
Happy 23rd Birthday!
python doesn't know whether you want 23 or 2 and 3, use the string function to fix this error
Happy 23rd Birthday!
use # for comments
The Zen of Python, by Tim Peters
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
Traceback (most recent call last):
File "D:\Users\KarmicDreamwork\Anaconda\Scripts\conda-script.py", line 12, in <module>
sys.exit(main())
File "D:\Users\KarmicDreamwork\Anaconda\lib\site-packages\conda\cli\main.py", line 149, in main
from ..exceptions import conda_exception_handler
File "D:\Users\KarmicDreamwork\Anaconda\lib\site-packages\conda\exceptions.py", line 25, in <module>
from .common.io import dashlist, timeout
File "D:\Users\KarmicDreamwork\Anaconda\lib\site-packages\conda\common\io.py", line 33, in <module>
from .._vendor.tqdm import tqdm
File "D:\Users\KarmicDreamwork\Anaconda\lib\site-packages\conda\_vendor\tqdm\__init__.py", line 8, in <module>
from ._tqdm import tqdm
File "D:\Users\KarmicDreamwork\Anaconda\lib\site-packages\conda\_vendor\tqdm\_tqdm.py", line 18, in <module>
from numbers import Number
ImportError: cannot import name 'Number' from 'numbers' (C:\Users\Karmic Dreamwork.000\Desktop\python_work\numbers.py)
C:\Users\Karmic Dreamwork.000>
【问题讨论】:
-
我在更新 conda 时遇到了类似的问题。那个时候,最后我需要重新安装anaconda本身。那是 2-3 年前的事了,所以现在我不确定,但看到 conda 的 github 问题可能会有所帮助。