问题
OS: Manjaro
Python: 3.8
On my computer I have 2 partitions, one is where my Manjaro is installed, and the other one it's a secondary SSD.
Every time when I'm running this command virtualenv env
into my secondary SSD I'm getting the following error:
OSError: [Errno 38] Function not implemented: '/usr/bin/python3' ->
'path/to/my/env/bin/python'
Also the same with this command python3 -m venv tutorial-env
I'm getting the same error.
But the interesting fact is that if I'm trying to run any of those commands under my main partition everything works perfectly fine with no errors at all.
Could any of you help me to understand what's going on here and why the heck I'm getting this error? Also, how can I fix it? Because I really need to create a python environment under that secondary partition.
回答1:
Your SSD is most probably formatted as FAT filesystem, FAT doesn't implement symlinks and virtualenvs by default use symlinks to that version of python they have been created with. You can try virtualenv --always-copy
to avoid symlinks on the second disk.
来源:https://stackoverflow.com/questions/65331236/function-not-implemented-lib-my-path-to-venv-lib64