opencv - cannot install virtual python environment -
i'm trying install , use opencv python 3 via homebrew in macos sierra. followed steps this tutorial, after typing command pip install virtualenv virtualenvwrapper exception shown below.
when first tried install virtual environment said couldn’t find pip. used sudo easy_install pip , typed again required command-line.
exception: traceback (most recent call last): file "/library/python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main status = self.run(options, args) file "/library/python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py", line 342, in run prefix=options.prefix_path, file "/library/python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 784, in install **kwargs file "/library/python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 851, in install self.move_wheel_files(self.source_dir, root=root, prefix=prefix) file "/library/python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 1064, in move_wheel_files isolated=self.isolated, file "/library/python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/wheel.py", line 345, in move_wheel_files clobber(source, lib_dir, true) file "/library/python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/wheel.py", line 323, in clobber shutil.copyfile(srcfile, destfile) file "/system/library/frameworks/python.framework/versions/2.7/lib/python2.7/shutil.py", line 83, in copyfile open(dst, 'wb') fdst: ioerror: [errno 13] permission denied: '/library/python/2.7/site-packages/virtualenv.py' but after using pipinstall --user virtualenv virtualenvwrapper went fine . after updating source given here , source following -bash: /usr/local/bin/virtualenvwrapper.sh: no such file or directory
even after close terminal , reopen in second line see -bash: /usr/local/bin/virtualenvwrapper.sh: no such file or directory
please me :(
this permission issue. outlined here, should use --user option:
pip install --user virtualenv virtualenvwrapper 
Comments
Post a Comment