Closed xqzhou closed 3 years ago
sorry, forget the --recurse-submodules
when cloning the repo. it now builds. But after python -m pip install .
, I get the following error:
Python 3.9.0 (v3.9.0:9cf6752276, Oct 5 2020, 11:29:23)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyjion
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/xq/Workspace/python/pyjion/pyjion/__init__.py", line 62, in <module>
from ._pyjion import * # NOQA
ModuleNotFoundError: No module named 'pyjion._pyjion'
>>>
Isn't your current working directory /Users/xq/Workspace/python/pyjion
?
import pyjion
it'll import the subdirectories, rather than the compiled module
- Make sure you don't start the REPL from the root, otherwise when you type
import pyjion
it'll import the subdirectories, rather than the compiled module
This solved my issue, Thanks. My stupidity.
Any way to make the build & installation work on Mac?