posted on 2023-05-21 18:26 read(728) comment(0) like(11) collect(2)
In recent years, Anaconda has provided two offline upgrade installation packages every year. Two days ago, when the first installation package in 2023 came, it was downloaded and installed. I thought it was just an ordinary operation, but I still encountered the "magic" side.
First of all, my machine is a Win10 operating system, Anaconda3-2022.10 is installed, and the Python version is upgraded to 3.9.16. This time, Python in Anaconda has achieved a "major version upgrade", that is, it has been upgraded from 3.9 to 3.10. If you have installed a version older than Anaconda3-2023.03, you need to uninstall it and install Anaconda 3-2023.03 to achieve the upgrade. Now rely on conda update is not upgraded to 3.10 . Of course, you can also keep the original installation and specify another directory to install Anaconda3-2023.03. Since I installed Anaconda just for learning, I uninstalled Anaconda3-2022.10.
Uninstallation and installation went smoothly. After installation, Python is 3.10.9, Spyder is 4.5.1, and there are six shortcuts in the menu, including "Anaconda Navigator", "Anaconda Powershell Prompt", and "Spyder".
After installation, I opened the "Anaconda Powershell Prompt" by " running as an administrator " and updated it...
(base) PS C:\windows\system32> conda update --all
Seeing a long list of package downloads and package removals in the prompt, there are so many, "Isn't that what the so-called update is?", I pressed Enter to agree without looking carefully. After the update, there are only three shortcuts left in the menu bar:
"Jupyter Notebook" and "Spyder" shortcuts are missing. Enter "Anaconda Navigator", the three applications originally installed by default are not installed. (almost executed conda uninstall spyder)
(base) PS C:\WINDOWS\system32> conda update anaconda
PackageNotInstalledError: Package is not installed in prefix.
prefix: C:\ProgramData\anaconda3
package name: anaconda
The anaconda package was actually lost.
So, reinstall it:
(base) PS C:\WINDOWS\system32> conda install anaconda
Click "Start", and several shortcuts that were lost in the menu bar are back.
Perform the update again conda update --all
(base) PS C:\WINDOWS\system32> conda update --all
Collecting package metadata (current_repodata.json): done
Solving environment: done
# All requested packages already installed.
(base) PS C:\WINDOWS\system32>
No fuss this time.
But no.
(base) PS C:\Users\Administrator> conda env list
# conda environments:
#
C:\ProgramData\Anaconda3
base * C:\ProgramData\anaconda3
Manually install missing optional modules
conda install cython
(PS: I installed it again under Win11, and these "magic properties" still exist. After Anaconda3-2023.03 is successfully installed, the first conda update --all operation will delete spyder and its mandatory dependencies and installed optional dependencies , Anaconsa almost becomes Miniconda)
Author:kimi
link:http://www.pythonblackhole.com/blog/article/25359/ffc4b4a5d0111e816fd5/
source:python black hole net
Please indicate the source for any form of reprinting. If any infringement is discovered, it will be held legally responsible.
name:
Comment content: (supports up to 255 characters)
Copyright © 2018-2021 python black hole network All Rights Reserved All rights reserved, and all rights reserved.京ICP备18063182号-7
For complaints and reports, and advertising cooperation, please contact vgs_info@163.com or QQ3083709327
Disclaimer: All articles on the website are uploaded by users and are only for readers' learning and communication use, and commercial use is prohibited. If the article involves pornography, reactionary, infringement and other illegal information, please report it to us and we will delete it immediately after verification!