如何将从Cython构建的.so模块导入pypy3

时间:2018-11-09 18:26:45

标签: pypy

# mymodule.o # built from Cython and sit the same directory of example_code.py

# example_code.py
import mymodule
...
$ pwd
/home/user/
$ python example_code.py --help # run without problems

但是我不能让它与pypy3一起使用

$ pwd
/home/user/
$ /home/user/pypy3-v6.0.0-linux64/bin/pypy3 /home/user/example_code.py --help
import mymodule
ImportError: No module named 'mymodule'

注意:我下载了已发布的二进制文件并解压缩到/home/use/pypy3-v6.0.0-linux64/bin/pypy3

问题>如何指定pypy3可以识别的路径?

0 个答案:

没有答案
相关问题