gpt4 book ai didi

python-2.7 - 操作系统错误 : [Errno 40] Too many levels of symbolic links: '/home/ahmed/.virtualenvs/cv/bin/python'

转载 作者:太空宇宙 更新时间:2023-11-03 22:48:23 25 4
gpt4 key购买 nike

我在 ubuntu 16.04 下。我已经为 python 3(3.6 和 3.5) 安装了 opencv。现在,我还需要为 python2.7 安装它。为此,我点击了以下链接: http://www.pyimagesearch.com/2015/06/22/install-opencv-3-0-and-python-2-7-on-ubuntu/

我已成功运行所有步骤,直到:

mkvirtualenv cv

当我运行它时,我得到以下错误:

 mkvirtualenv cv
Using base prefix '/home/ahmed/anaconda3'
New python executable in /home/ahmed/.virtualenvs/cv/bin/python
Traceback (most recent call last):
File "/home/ahmed/anaconda3/bin/virtualenv", line 11, in <module>
sys.exit(main())
File "/home/ahmed/anaconda3/lib/python3.6/site-packages/virtualenv.py", line 713, in main
symlink=options.symlink)
File "/home/ahmed/anaconda3/lib/python3.6/site-packages/virtualenv.py", line 925, in create_environment
site_packages=site_packages, clear=clear, symlink=symlink))
File "/home/ahmed/anaconda3/lib/python3.6/site-packages/virtualenv.py", line 1231, in install_python
shutil.copyfile(executable, py_executable)
File "/home/ahmed/anaconda3/lib/python3.6/shutil.py", line 115, in copyfile
with open(dst, 'wb') as fdst:
OSError: [Errno 40] Too many levels of symbolic links: '/home/ahmed/.virtualenvs/cv/bin/python'

最佳答案

安装anaconda,

1.从https://www.continuum.io/downloads下载anaconda

2.移动到您下载文件的目录。

3.bash Anaconda2-4.3.1-Linux-x86_64.sh for python2 或者

用于 python3 的 bash Anaconda3-4.3.1-Linux-x86_64.sh

创建anaconda环境

conda create -n yourenv python=x.x anaconda

源码激活yourenv

关于python-2.7 - 操作系统错误 : [Errno 40] Too many levels of symbolic links: '/home/ahmed/.virtualenvs/cv/bin/python' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43853672/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com