简体   繁体   English

Function 未实现:'lib' -> 'my/path/to/venv/lib64'

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

OS: Manjaro操作系统:Manjaro
Python: 3.8 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.在我的电脑上,我有 2 个分区,一个是安装 Manjaro 的地方,另一个是辅助 SSD。 Every time when I'm running this command virtualenv env into my secondary SSD I'm getting the following error:每次在我的辅助 SSD 中运行此命令virtualenv env时,我都会收到以下错误:

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.这个命令也一样python3 -m venv tutorial-env我得到了同样的错误。

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.因为我确实需要在那个二级分区下创建一个 python 环境。

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.您的 SSD 很可能被格式化为 FAT 文件系统,FAT 不实现符号链接,并且默认情况下使用虚拟环境的符号链接指向创建它们的 python 版本。 You can try virtualenv --always-copy to avoid symlinks on the second disk.您可以尝试virtualenv --always-copy以避免在第二个磁盘上出现符号链接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM