mkvirtualenv: Too many levels of symbolic links

前端 未结 8 1097
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-01 09:38

I am running virtualenv burrito and getting an error that there are too many levels of symbolic links. I have no idea what that means.

mkvirtualenv --python          


        
相关标签:
8条回答
  • 2021-01-01 10:16

    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!

    0 讨论(0)
  • 2021-01-01 10:21

    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.

    0 讨论(0)
  • 2021-01-01 10:25

    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

    0 讨论(0)
  • 2021-01-01 10:26

    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
    
    0 讨论(0)
  • 2021-01-01 10:32

    I had the same problem on OSX.

    I got rid of it after:

    1. removing env folder
    2. removing __pycache__ folder
    
    0 讨论(0)
  • 2021-01-01 10:34

    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
    
    0 讨论(0)
提交回复
热议问题