You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying out poetry for managing machine learning environments on HPC. I do not have root access on it, and the permission issue is likely directly caused by that.
What I did:
Create a conda environment p39 with python 3.9 and pip installed in it
Activate p39 and ensure python and pip are under its prefix
Write the requirements in pyproject.toml
run poetry install
Then I get this error:
Command ['/gpfs/data/oermannlab/users/xl3942/.conda/envs/p39/bin/python', '/gpfs/data/oermannlab/users/xl3942/.local/share/pypoetry/venv/lib/python3.8/site-packages/virtualenv/seed/w
heels/embed/pip-22.0.4-py3-none-any.whl/pip', 'install', '--disable-pip-version-check', '--prefix', '/gpfs/data/oermannlab/users/xl3942/.conda/envs/p39', '--upgrade', '--no-deps', '/gpfs/data/oermannlab/users/xl3942/.cache/pypoetry/artifacts/86/4a/ad/37e91024d94f8218fc54b1fbb58b71888f53c1636daeb28593fa254ed2/urllib3-1.26.9-py2.py3-none-any.whl'] errored with the following return code 1, and output:
Processing /gpfs/data/oermannlab/users/xl3942/.cache/pypoetry/artifacts/86/4a/ad/37e91024d94f8218fc54b1fbb58b71888f53c1636daeb28593fa254ed2/urllib3-1.26.9-py2.py3-none-any.whl
Installing collected packages: urllib3
Attempting uninstall: urllib3
Found existing installation: urllib3 1.26.8
Uninstalling urllib3-1.26.8:
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: 'METADATA'
Consider using the `--user` option or check the permissions.
Note that only installing torch doesn't have this issue. The specific package that fails looks like charset-normalizer: Updating charset-normalizer (2.0.4 /tmp/build/80754af9/charset-normalizer_1630003229654/work -> 2.0.12): Failed.
I don't quite understand why this is the case: shouldn't everything be managed by a virtualenv? Am I missing something here? Any pointers will be helpful, thank you.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying out poetry for managing machine learning environments on HPC. I do not have root access on it, and the permission issue is likely directly caused by that.
What I did:
p39with python 3.9 andpipinstalled in itp39and ensurepythonandpipare under its prefixpyproject.tomlpoetry installThen I get this error:
Content of my pyproject.toml:
Note that only installing torch doesn't have this issue. The specific package that fails looks like
charset-normalizer:Updating charset-normalizer (2.0.4 /tmp/build/80754af9/charset-normalizer_1630003229654/work -> 2.0.12): Failed.I don't quite understand why this is the case: shouldn't everything be managed by a virtualenv? Am I missing something here? Any pointers will be helpful, thank you.
Beta Was this translation helpful? Give feedback.
All reactions