mkvirtualenv: Too many levels of symbolic links

二次信任 提交于 2019-12-03 09:29:10

Strangely, I ran into this when I tried to create a virtualenv with a name that already existed. Solution to remove the old and create a new one:

rmvirtualenv old-one
mkvirtualenv new-one

I had the same problem on OSX.

I got rid of it after:

1. removing env folder
2. removing __pycache__ folder

The reason this wasn't working was because I was capitalizing Python. As soon as I did it using python3 instead of Python3 I stopped getting trouble.

I'm using a mac and I solved this by rm the virtual env that is named the same as you are trying to create. Specifically, I rm the folder within Users/user_name/.virtualenvs/. Then the create worked.

I came across it after I had built my freshest environment. Because it has been interrupted by myself while it was building the new one. Then I noticed that virtualenvwrapper already created a new environment folder underneath the environment directory but it has not been accomplished properly. Hence, I deleted the lastest environment folder and retried to install same environment. It fixed!

I had the same problem in raspberry pi during open cv installation. I solve my problem by using below method.

Go to /home/pi ls -all and check weather .virtualenvs is there or not if it is there remove it by rm -r .virtualenvs

File "/Users/croberts/? seems you're using Windows. Consider using 'virtualenvwrapper-win'. The latest version is 1.2.0 which support python 2 up to 3.4. I've used it without any problems. If you use several versions of python on your computer, you can switch between them using 'pywin'.

For making new virtualenv:

C:\Users\your_directory>mkvirtualenv neo
Using base prefix 'C:\\Python34'
New python executable in neo\Scripts\python.exe
Installing setuptools, pip...done.

For view existing virtualenv:

C:\Users\your_directory>lsvirtualenv

dir /b /ad "C:\Users\your_directory"
=========================================================================
env0
env1
env2
neo
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!