python虚拟环境转后遇到的问题
January 5th, 2022

此文针对python3.7.9下遇到问题记录。

经常会遇到将虚拟环境整体搬移到其他pc机上去,又或者是更换系统,导致虚拟环境的主环境与最开始创建虚拟环境的主环境路径不一样,此时切换虚拟环境的时候会导致不可用,因此需要到虚拟环境pyvenv.cfg文件中修改主python环境改路径等信息,如图所示,隐私信息我给打码了。此时只需要将原来的配置文件中home参数替换为新环境的python环境路径,如有必要version也可以进行更改

Subscribe to program tech record
Receive the latest updates directly to your inbox.
Verification
This entry has been permanently stored onchain and signed by its creator.
More from program tech record

Skeleton

Skeleton

Skeleton