未实现的功能:"lib"->'我的/路径/到/venv/lib64' [英] Function not implemented: 'lib' -> 'my/path/to/venv/lib64'

查看:121
本文介绍了未实现的功能:"lib"->'我的/路径/到/venv/lib64'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

OS:Manjaro
Python:3.8

OS: Manjaro
Python: 3.8

在我的计算机上,我有2个分区,一个分区是安装Manjaro的分区,另一个分区是辅助SSD.每当我在辅助SSD中运行此命令 virtualenv env 时,都会出现以下错误:

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'

与此命令相同 python3 -m venv tutorial-env 我遇到了相同的错误.

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.

你们中的任何人都可以帮助我了解这里发生的情况以及为什么我会收到此错误吗?另外,我该如何解决?因为我确实需要在该辅助分区下创建一个python环境.

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.

推荐答案

您的SSD最有可能被格式化为FAT文件系统,FAT不实现符号链接,默认情况下,virtualenvs使用符号链接创建该版本的python.您可以尝试 virtualenv --always-copy 以避免第二个磁盘上的符号链接.

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.

这篇关于未实现的功能:"lib"->'我的/路径/到/venv/lib64'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆