我在这里扯头发!我在我的主 PC 上的 Gentoo 中有这个工作,现在将程序移动到不同的服务器。我正在运行带有 Python 3.7 虚拟环境设置的 Ubuntu 16。我在venv环境中。我已将 PROJ_DIR 设置为指向具有 777 权限
venv/
的文件夹的文件夹。PermissionError 失败我已经阅读了这篇文章,这在 Windows 和其他一些问题中是同样的问题。我什至尝试过 sudo -H 但这也失败了。我已经安装了一些其他软件包,完全没有任何问题。为什么是这个?bin/proj
python3.7 -m pip install pyproj
这是所要求的回溯
Collecting pyproj
Using cached pyproj-2.6.0.tar.gz (524 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
ERROR: Command errored out with exit status 1:
command: /home/francis/bin/RWS_MeteosatSynopCreator_2/venv/bin/python3.7 /home/francis/bin/RWS_MeteosatSynopCreator_2/venv/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmptv31e14_
cwd: /tmp/pip-install-k21mhy0s/pyproj
Complete output (34 lines):
PROJ_DIR is set, using existing proj4 installation..
Traceback (most recent call last):
File "/home/francis/bin/RWS_MeteosatSynopCreator_2/venv/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 257, in <module>
main()
File "/home/francis/bin/RWS_MeteosatSynopCreator_2/venv/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 240, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/francis/bin/RWS_MeteosatSynopCreator_2/venv/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 91, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-oz41ud89/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 148, in get_requires_for_build_wheel
config_settings, requirements=['wheel'])
File "/tmp/pip-build-env-oz41ud89/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 128, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-oz41ud89/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 250, in run_setup
self).run_setup(setup_script=setup_script)
File "/tmp/pip-build-env-oz41ud89/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 143, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 243, in <module>
ext_modules=get_extension_modules(),
File "setup.py", line 147, in get_extension_modules
proj_dir = get_proj_dir()
File "setup.py", line 60, in get_proj_dir
check_proj_version(proj_dir)
File "setup.py", line 20, in check_proj_version
proj_ver_bytes = subprocess.check_output(proj, stderr=subprocess.STDOUT)
File "/usr/lib/python3.7/subprocess.py", line 411, in check_output
**kwargs).stdout
File "/usr/lib/python3.7/subprocess.py", line 488, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.7/subprocess.py", line 800, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: '/home/francis/bin/RWS_MeteosatSynopCreator_2/venv/bin/proj'
----------------------------------------
ERROR: Command errored out with exit status 1: /home/francis/bin/RWS_MeteosatSynopCreator_2/venv/bin/python3.7 /home/francis/bin/RWS_MeteosatSynopCreator_2/venv/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmptv31e14_ Check the logs for full command output.