-
-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Permission denied for adding packages #682
Comments
Can you show the output of |
Sure. I dont' have any venv for this project. ❯ pdm venv list Although I My config: Project configuration (/home/will/python_project/ML2/Normalizing_flows/.pdm.toml): |
with pdm sync See /tmp/pdm-install-_n8gppz5.log for detailed debug log. |
More information have been provided. I have the same issue when installing using pdm 3.10.3. I use pipx.
|
Don't the global python, use venv instead. |
Hello dear creator,
I have a problem adding a package called "bpython". Are we supposed to use
sudo
for adding packages?I run the following command after
pdm init
. Any help is deeply appreciated.Thank you :D
Raw output:
❯ pdm add bpython
Adding packages to default dependencies: bpython
✔ 🔒 Lock successful
Changes are written to pdm.lock.
Changes are written to pyproject.toml.
Synchronizing working set with lock file: 12 to add, 0 to update, 0 to remove
✔ Install blessings 1.7 successful
✔ Install bpython 0.21 successful
✔ Install certifi 2021.10.8 successful
✔ Install charset-normalizer 2.0.7 successful
✔ Install curtsies 0.3.10 successful
✔ Install cwcwidth 0.1.5 successful
✖ Install greenlet 1.1.2 failed
✔ Install idna 3.3 successful
✔ Install pygments 2.10.0 successful
✔ Install pyxdg 0.27 successful
✔ Install requests 2.26.0 successful
✔ Install urllib3 1.26.7 successful
Retry failed jobs
✖ Install greenlet 1.1.2 failed
ERRORS:
add greenlet failed:
Traceback (most recent call last):
File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/will/.local/share/pdm/venv/lib/python3.9/site-packages/pdm/installers/synchronizers.py", line 190, in install_candidate
self.manager.install(can)
File "/home/will/.local/share/pdm/venv/lib/python3.9/site-packages/pdm/installers/manager.py", line 38, in install
installer(candidate.build(), self.environment, candidate.direct_url())
File "/home/will/.local/share/pdm/venv/lib/python3.9/site-packages/pdm/installers/installers.py", line 74, in install_wheel
_install_wheel(
File "/home/will/.local/share/pdm/venv/lib/python3.9/site-packages/pdm/installers/installers.py", line 189, in _install_wheel
record = destination.write_file(
File "/home/will/.local/share/pdm/venv/lib/python3.9/site-packages/installer/destinations.py", line 151, in write_file
return self.write_to_fs(scheme, path, stream)
File "/home/will/.local/share/pdm/venv/lib/python3.9/site-packages/pdm/installers/installers.py", line 60, in write_to_fs
record = super().write_to_fs(scheme, path, stream)
File "/home/will/.local/share/pdm/venv/lib/python3.9/site-packages/installer/destinations.py", line 130, in write_to_fs
with open(target_path, "wb") as f:
PermissionError: [Errno 13] Permission denied: '/usr/include/python3.9/greenlet.h'
The text was updated successfully, but these errors were encountered: