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 upgraded my python from python 3.10.1 to python 3.10.6 by doing a clean install.
While doing this I was reinstalling the PDM from the recommended method.
The installation script kept using the old venv installed in this location.
I kept on receiving this error
An error occurred when executing ['/Users/username/Library/Application Support/pdm/venv/bin/python', '-v', '-m', 'ensurepip']:
dyld[38246]: Library not loaded: '/usr/local/Cellar/[email protected]/3.10.1/Frameworks/Python.framework/Versions/3.10/Python'
Referenced from: '/Users/username/Library/Application Support/pdm/venv/bin/python'
Reason: tried: '/usr/local/Cellar/[email protected]/3.10.1/Frameworks/Python.framework/Versions/3.10/Python' (no such file), '/Library/Frameworks/Python.framework/Versions/3.10/Python' (no such file), '/System/Library/Frameworks/Python.framework/Versions/3.10/Python' (no such file)
After some troubleshooting I manually removed the old venv, so that PDM installation can create a fresh venv from the latest python installation present in the system.
I checked the installation script, in there found that venv.create's clear argument is specifically set to False.
Is there any specific reason for this?
Because according to this, if it is set to True, then it should resolve these issues automatically.
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
-
I upgraded my python from
python 3.10.1
topython 3.10.6
by doing a clean install.While doing this I was reinstalling the PDM from the recommended method.
The installation script kept using the old venv installed in this location.
I kept on receiving this error
After some troubleshooting I manually removed the old venv, so that PDM installation can create a fresh venv from the latest python installation present in the system.
I checked the installation script, in there found that
venv.create
'sclear
argument is specifically set toFalse
.Is there any specific reason for this?
Because according to this, if it is set to
True
, then it should resolve these issues automatically.Beta Was this translation helpful? Give feedback.
All reactions