简体   繁体   中英

mkvirtualenv giving permission error for virtualenvwrapper_run_hook:12

When running mkvirtualenv --python=python3.8 test on my Mac terminal I get this permissions error:

created virtual environment CPython3.8.2.final.0-64 in 545ms creator CPython3Posix(dest=/Users/blake/.virtualenvs/test, clear=False, global=False) seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=/Users/blake/Library/Application Support/virtualenv/seed-app-data/v1.0.1) activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator virtualenvwrapper_run_hook:12: permission denied: /Users/blake/Library/Python/3.8/

I'm able to import the virtualenvwrapper module directly in Python 3.8 so I know I have it installed correctly, it just doesn't allow me to create the virtualenv.

似乎重新安装 virtualenvwrapper 并在 .bash_profile 中放置export VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3解决了这个问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM