记录Anaconda的安装,给重装系统或移植准备条件
环境:win7x64
Python 3.6.5 (Anaconda3 5.2.0 64-bit)
安装时未将环境变量添加到%path%
安装好了anaconda,又安装了很多python包,因为各种原因需要重装系统,怎么能避免重装系统后再次安装anaconda以及各种python包的麻烦呢?
在这里,记录下来快捷方式和环境变量
开始菜单:C:\Users\xxxx\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Anaconda3 (64-bit)
文件名
目标
起始位置
(1)Anaconda Navigator.lnk
C:\Users\xxxx\Anaconda3\pythonw.exe C:\Users\xxkj007\Anaconda3\cwp.py C:\Users\xxkj007\Anaconda3 C:\Users\xxxx\Anaconda3\pythonw.exe C:\Users\xxkj007\Anaconda3\Scripts\anaconda-navigator-script.py
C:\Users\xxxx\Documents
(2)Anaconda Prompt.lnk
%windir%\System32\cmd.exe "/K" C:\Users\xxkj007\Anaconda3\Scripts\activate.bat C:\Users\xxkj007\Anaconda3
%HOMEPATH%
(3)Jupyter Notebook - D.lnk
C:\Users\xxxx\Anaconda3\python.exe C:\Users\xxkj007\Anaconda3\cwp.py C:\Users\xxkj007\Anaconda3 C:\Users\xxxx\Anaconda3\python.exe C:\Users\xxxx\Anaconda3\Scripts\jupyter-notebook-script.py "C:\Users\xxxx\Documents\Anaconda" #最后一个时自己添加的工作目录
%HOMEPATH%
(4)Reset Spyder Settings.lnk
C:\Users\xxkj007\Anaconda3\python.exe C:\Users\xxkj007\Anaconda3\cwp.py C:\Users\xxkj007\Anaconda3 C:\Users\xxkj007\Anaconda3\python.exe C:\Users\xxkj007\Anaconda3\Scripts\spyder-script.py --reset
C:\Users\xxkj007
(5)Spyder.lnk
C:\Users\xxkj007\Anaconda3\pythonw.exe C:\Users\xxkj007\Anaconda3\cwp.py C:\Users\xxkj007\Anaconda3 C:\Users\xxkj007\Anaconda3\pythonw.exe C:\Users\xxkj007\Anaconda3\Scripts\spyder-script.py
"C:\Users\xxkj007\Documents\Python Scripts"
执行Anaconda Prompt后环境变量的内容,这里把和anaconda有关的内容突出出来
(base) C:\Users\xxxx>set
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\xxxx\AppData\Roaming
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=XXXXX
ComSpec=C:\windows\system32\cmd.exe
CONDA_DEFAULT_ENV=base
CONDA_EXE=C:\Users\xxxx\Anaconda3\Scripts\conda.exe
CONDA_PREFIX=C:\Users\xxxx\Anaconda3
CONDA_PROMPT_MODIFIER=(base)
CONDA_PYTHON_EXE=C:\Users\xxxx\Anaconda3\python.exe
CONDA_SHLVL=1
FPPUILang=en-US
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\xxxx
LOCALAPPDATA=C:\Users\xxxx\AppData\Local
LOGONSERVER=\\XXXX
NUMBER_OF_PROCESSORS=4
OnlineServices=Online Services
OOBEUILang=zh-CN
OS=Windows_NT
Path=C:\Users\xxxx\Anaconda3;C:\Users\xxxx\Anaconda3\Library\mingw-w64\bin
;C:\Users\xxxx\Anaconda3\Library\usr\bin;C:\Users\xxxx\Anaconda3\Library\b
in;C:\Users\xxxx\Anaconda3\Scripts;C:\Users\xxxx\Anaconda3\bin;C:\Users\xx
xx\Anaconda3\condabin;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Fil
es\Intel\iCLS Client;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\
windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Intel\WiFi\bin;C:\Progr
am Files\Common Files\Intel\WirelessCommon;C:\Program Files (x86)\Intel\UCRT;C:\
Program Files\Intel\UCRT;C:\Program Files (x86)\Intel\Intel(R) Management Engine
Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL
;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Progr
am Files\Intel\Intel(R) Management Engine Components\IPT
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
platformcode=AN
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 78 Stepping 3, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=4e03
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=(base) $P$G
PSModulePath=C:\windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
RegionCode=APJ
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\windows
TEMP=C:\Users\xxxx\AppData\Local\Temp
TMP=C:\Users\xxxx\AppData\Local\Temp
UOIPME_REG_PATH=C:\Program Files\Intel Corporation\USB over IP
USERDOMAIN=xxxxx
USERDOMAIN_ROAMINGPROFILE=xxxxx
USERNAME=xxxx
USERPROFILE=C:\Users\xxxx
windir=C:\windows
windows_tracing_flags=3
windows_tracing_logfile=C:\BVTBin\Tests\installpackage\csilogfile.log
在这里,xxxx是用户名,xxxxx是计算机名。
注册表里又多少内容呢,那不重要,有了这些信息,足够了