Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

manage.py 这一步后面的makemigrations文件是哪里来的 #11

Open
igoscar opened this issue Oct 13, 2018 · 4 comments
Open

manage.py 这一步后面的makemigrations文件是哪里来的 #11

igoscar opened this issue Oct 13, 2018 · 4 comments

Comments

@igoscar
Copy link

igoscar commented Oct 13, 2018

./manage.py makemigrations 这个命令执行一大堆错误
RuntimeError: module compiled against API version 0xc but this version of numpy is 0xb
Traceback (most recent call last):
File "./manage.py", line 22, in
execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 367, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 341, in execute
django.setup()
File "/usr/local/lib/python2.7/dist-packages/django/init.py", line 27, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 108, in populate
app_config.import_models(all_models)
File "/usr/local/lib/python2.7/dist-packages/django/apps/config.py", line 199, in import_models
self.models_module = import_module(models_module_name)
File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/home/JMeter-Control-Center/online/models.py", line 2, in
import pandas as pd
File "/usr/local/lib/python2.7/dist-packages/pandas/init.py", line 13, in
"extensions first.".format(module))
ImportError: C extension: umpy.core.multiarray failed to import not built. If you want to import pandas from the source directory, you may need to run 'python setup.py build_ext --inplace' to build the C extensions first.

请求帮助:[email protected]

@igoscar
Copy link
Author

igoscar commented Oct 15, 2018

我解决了

@v0devil
Copy link
Member

v0devil commented Oct 15, 2018

Try to use python3 please

@853068679
Copy link

请问是怎么解决的,#!/usr/bin/env python3 改为python3还是一样报错

@igoscar
Copy link
Author

igoscar commented Dec 17, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants