最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

python - Virtual environment marked as externally managed environemnt - Stack Overflow

programmeradmin1浏览0评论

I know that this error should be raised normally, but I am already working in a virtual environment, where the error should not be raised.

I created and activated a virtual environment on my Raspberry pi 4 so that I could install packages. It has been working fine. Seemingly randomly, I am getting the "This environment is externally managed..." error with the venv active. I disconnected the internet and tried a pip install on the system python, and that tried to work. The only thing I can think of as a possible cause was adding the activate command to the end of the .bashrc file, but it was running fine like this for weeks. How do I recover my virtual environment and restore the protections to the system python install?

发布评论

评论列表(0)

  1. 暂无评论