如何解决PYTHONPATH环境安装目录
ERROR: Command errored out with exit status 1:
command: /usr/site/hpc/x86_64/generic/Anaconda3/2020.03/bin/python -c 'import sys,setuptools,tokenize; sys.argv[0] = '"'"'/home/c703/c7031329/fairseq/setup.py'"'"'; __file__='"'"'/home/c703/c7031329/fairseq/setup.py'"'"';f=getattr(tokenize,'"'"'open'"'"',open)(__file__);code=f.read().replace('"'"'\r\n'"'"','"'"'\n'"'"');f.close();exec(compile(code,__file__,'"'"'exec'"'"'))' develop --no-deps --user --prefix=
cwd: /home/c703/c7031329/fairseq/
Complete output (28 lines):
running develop
WARNING: The user site-packages directory is disabled.
error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 13] Permission denied: '/usr/site/hpc/x86_64/generic/Anaconda3/2020.03/lib/python3.7/site-packages/test-easy-install-2880592.write-test'
The installation directory you specified (via --install-dir,--prefix,or
the distutils default setting) was:
/usr/site/hpc/x86_64/generic/Anaconda3/2020.03/lib/python3.7/site-packages/
Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory,you may need to sign in
as the administrator or "root" account. If you do not have administrative
access to this machine,you may wish to choose a different installation
directory,preferably one that is listed in your PYTHONPATH environment
variable.
For information on other options,you may wish to consult the
documentation at:
https://setuptools.readthedocs.io/en/latest/easy_install.html
Please make the appropriate changes for your system and try again.
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/site/hpc/x86_64/generic/Anaconda3/2020.03/bin/python -c 'import sys,tokenize; sys.argv[0] = '"'"'/home/c703/sdacc/fairseq/setup.py'"'"'; __file__='"'"'/home/c703/c7031329/fairseq/setup.py'"'"';f=getattr(tokenize,'"'"'exec'"'"'))' develop --no-deps --user --prefix= Check the logs for full command output.
由于我没有对机器的管理访问权限,因此我使用以下方法获取 PAYTHONPATH 的目录:
import sys
for p in sys.path:
print(p)
然后,当上述脚本返回时,我尝试将其安装在目录中。但是,我又收到了同样的错误。
有什么解决办法吗?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。