[英]Lost my python.exe in Pycharm with Anaconda3
Everything was working perfectly until today, when for some reason my python.exe
file disappeared from the Project Interpreter in Pycharm.直到今天,一切都运行良好,但由于某种原因,我的
python.exe
文件从 Pycharm 的项目解释器中消失了。
It was located in C:\\users\\my_name\\Anaconda3\\python.exe
, and for some reason I can't find it anywhere!它位于
C:\\users\\my_name\\Anaconda3\\python.exe
,由于某种原因,我在任何地方都找不到它!
Yet, all the packages are here (in the site-packages folder), and only the C:\\users\\my_name\\Anaconda3\\pythonw.exe
is available.然而,所有的包都在这里(在 site-packages 文件夹中),只有
C:\\users\\my_name\\Anaconda3\\pythonw.exe
可用。
With the latest however, some packages I installed on top of those available in Anaconda3
won't be recognized.但是,使用最新版本时,我在
Anaconda3
可用的软件包之上安装的一些软件包将无法识别。
Therefore, how to get back the python.exe
file?因此,如何取回
python.exe
文件?
I just had the same issue and found out that Avast removed it because it thought it was a threat.我刚刚遇到了同样的问题,发现 Avast 删除了它,因为它认为这是一个威胁。 I found it in Avast -> Protection -> Virus Chest.
我在 Avast -> Protection -> Virus Chest 中找到了它。 And from there, you have the option to restore it.
从那里,您可以选择恢复它。
The answer repeats the comment to the question.答案重复了对问题的评论。
I had the same issue once after Anaconda update - python.exe
was missing.我在 Anaconda 更新后遇到了同样的问题 -
python.exe
丢失了。 It was Anaconda 3 installed to Program Files
folder by MS Visual Studio (Python 3.6 on Windows10 x64).它是由 MS Visual Studio(Windows10 x64 上的 Python 3.6)安装到
Program Files
夹中的 Anaconda 3。
To solve the problem I manually copied python.exe
file from the most fresh python package available (folder pkgs
then folder like python-3.6.8-h9f7ef89_7
).为了解决这个问题,我从可用的最新 python 包中手动复制了
python.exe
文件(文件夹pkgs
然后文件夹像python-3.6.8-h9f7ef89_7
)。
今天我在 anaconda 中的现有环境中缺少 Python.exe,因此我使用 anaconda 克隆我的环境以重新创建 Python.exe 并在 Spyder 中再次使用它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.