问题:
默认安装路径:C:\Users\admin\AppData\Roaming\Python
虚拟环境位置:C:\ProgramData\anaconda3\envs
解决方法:
修改虚拟环境的Lib\site.py文件
#for distutils.commands.install
#These values are initialized by the getuserbase() and getusersitepackages()
#functions, through the main() function when Python starts.
USER_SITE = None
USER_BASE = None
修改为:
#for distutils.commands.install
#These values are initialized by the getuserbase() and getusersitepackages()
#functions, through the main() function when Python starts.
USER_SITE = “C:/ProgramData/anaconda3/envs/xx/Lib/site-packages”
USER_BASE = “C:/ProgramData/anaconda3/envs/xx/Scripts”
1万+




被折叠的 条评论
为什么被折叠?



