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

Getting a numpy import error when numpy is installed #11

Closed
AndreTInfante opened this issue Sep 21, 2017 · 6 comments
Closed

Getting a numpy import error when numpy is installed #11

AndreTInfante opened this issue Sep 21, 2017 · 6 comments
Labels
help-wanted Issue contains request for help or information.

Comments

@AndreTInfante
Copy link

No description provided.

@AndreTInfante
Copy link
Author

AndreTInfante commented Sep 21, 2017

Sorry, accidentally submitted before filling this out. I'm getting this error on windows 10, python 3.5.

image

when I try to run the ball balancing example project. I initially thought it was because I had the wrong version of numpy installed, but I reverted to 1.11.0, and it's still throwing the issue. Any thoughts on what might be up?

@AndreTInfante
Copy link
Author

For reference:

(tensorflowcpu) C:\Users\aticp\Downloads\ml-agents-master\ml-agents-master\python>pip3 install numpy
Requirement already satisfied (use --upgrade to upgrade): numpy in c:\users\aticp\appdata\local\programs\python\python35\lib\site-packages

@vincentpierre
Copy link
Contributor

I think there is something wrong with jupyter, not python.

  • Is the Kernel of the Jupyter notebook set to Python3 or Python2 ?
  • Do you have multiple versions of Python installed ? If yes, jupyter must use the same python as pip.
  • What happens if you open Python3 from the command line and try to import numpy?
  • I think you are using a virtual environment called tensorflowcpu, are you sure you launched jupyter notebookfrom the same virtual environment ?

Let us know if you find a solution, we are interested in knowing about this issue.

@AndreTInfante
Copy link
Author

The tensorflowcpu environment is made using anaconda, to try to simplify things. I definitely launched jupyter notebook from within the same environment. I'll try setting things up outside of anaconda as well, and see if I have any more luck.

mporting numpy in python seems to work (or at least throws no errors.

The kernel.json file shows

{
"language": "python",
"display_name": "Python 3",
"argv": [
"python",
"-m",
"ipykernel_launcher",
"-f",
"{connection_file}"
]
}

Which looks correct to me, since I'm trying to use python 3.5. Anything else I should check?

Thanks!

@AndreTInfante
Copy link
Author

Ah, interesting! Doing it outside of anaconda seems to have fixed the issue. Weird. Thank you for your help!

@romerocesar romerocesar added the help-wanted Issue contains request for help or information. label Sep 21, 2017
@lock
Copy link

lock bot commented Jan 5, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help-wanted Issue contains request for help or information.
Projects
None yet
Development

No branches or pull requests

3 participants