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

程序import 错误 #6

Open
sheldon123z opened this issue Sep 6, 2020 · 0 comments
Open

程序import 错误 #6

sheldon123z opened this issue Sep 6, 2020 · 0 comments

Comments

@sheldon123z
Copy link

Traceback (most recent call last):
  File "d:\OneDrive - Office365\complex network\projects\community_detection_2\demo_SpectralClustering.py", line 2, in <module>
    from algorithm import SpectralClustering
  File "d:\OneDrive - Office365\complex network\projects\community_detection_2\algorithm\SpectralClustering.py", line 22, in <module>
    import numpy as np
  File "D:\Applications\anacoda\lib\site-packages\numpy\__init__.py", line 142, in <module>
    from . import core
  File "D:\Applications\anacoda\lib\site-packages\numpy\core\__init__.py", line 54, in <module>
    raise ImportError(msg)
ImportError: 

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy c-extensions failed.
- Try uninstalling and reinstalling numpy.
- If you have already done that, then:
  1. Check that you expected to use Python3.7 from "D:\Applications\anacoda\python.exe",
     and that you have no directories in your PATH or PYTHONPATH that can
     interfere with the Python and numpy version "1.18.1" you're trying to use.
  2. If (1) looks fine, you can open a new issue at
     https://github.com/numpy/numpy/issues.  Please include details on:
     - how you installed Python
     - how you installed numpy
     - your operating system
     - whether or not you have multiple versions of Python installed
     - if you built from source, your compiler versions and ideally a build log

- If you're working with a numpy git repository, try `git clean -xdf`
  (removes all files not under version control) and rebuild numpy.

Note: this error has many possible causes, so please don't comment on
an existing issue about this - open a new one instead.

我注意到_init_.py中是空的,但是commit comment说是修正了networkx版本不兼容的错误

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

1 participant