简体   繁体   English

带有 WSL 的 python virtualenv 中没有 lib64 目录

[英]No lib64 directory in python virtualenv with WSL

I am using WSL on windows 10. I created a python3.6 virtual environment using virtualenv.我在 Windows 10 上使用 WSL。我使用 virtualenv 创建了一个 python3.6 虚拟环境。 When trying to import the "arcade" library I'm getting the following error:尝试导入“arcade”库时,出现以下错误:

Unable to find match for ffmpeg sound library at expected location: /home/nick/python-virtualenvs/final_projects/lib64/python3.6/site-packages/pyglet_ffmpeg2/linux_x86_64/libavcodec.so.58.*

Although I have pyglet_ffmpeg2 in lib sit packages, it turns out I don't even have a lib64 directory.虽然我在 lib sat 包中有 pyglet_ffmpeg2,但事实证明我什至没有 lib64 目录。 I have confirmed that this is 64-bit python using:我已经使用以下方法确认这是 64 位 python:

print ctypes.sizeof(ctypes.c_voidp)

It actually looks as though I don't have 64-bit packages at all, even within base python for example, there is no /usr/lib64/ .它实际上看起来好像我根本没有 64 位包,即使在基本 python 中,例如,也没有/usr/lib64/

Anyone have any ideas?谁有想法? My instinct is this is a WSL quirk, or at least something specific to how I have it installed.我的直觉是这是 WSL 的一个怪癖,或者至少是我安装它的方式所特有的东西。 A quick google search did not provide any answer.快速谷歌搜索没有提供任何答案。

Experienced the same issue working with a Xubuntu VM.在使用 Xubuntu VM 时遇到了同样的问题。 It looks like they're aware of it and making a fix at some point.看起来他们已经意识到这一点并在某个时候进行修复。

In the short term you can hack together a quick fix in pyglet's loader.py by commenting out line 55 ('path = path.replace("/lib/", "/lib64/")`).在短期内,您可以通过注释掉第 55 行 ('path = path.replace("/lib/", "/lib64/")`) 在 pyglet 的loader.py快速修复 This isn't a great way to fix it, but it will get you rolling for now.这不是修复它的好方法,但它会让你现在滚动。

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

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