Function not implemented: 'lib' -> 'my/path/to/venv/lib64'

◇◆丶佛笑我妖孽 提交于 2021-02-17 03:38:05

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!