Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Numpy Help
#2
Quote:I currently have an Anaconda environment set up using python2.7 to handle this code in Spyder. This is because I think that's what the author of this code was using. I'm trying to run this code to see if it works, and to see if my work space is set up to handle a ANN. When I run it this is the error I keep getting, and I don't understand how to fix it.
Your just trying to run the above code?

I dont use Anaconda, so i cant really help with that issue. But to run the first snippet all you would need is python2.x and numpy for that same version. I say 2.x because the code has xrange()

If your on linux....you can just do pip install numpy
and then run the code in python2.x from the terminal

If you want to run it under python3.x then remove the x from xrange() and pip3 install numpy and then run the same code with the python3.x interpreter
Recommended Tutorials:
Reply


Messages In This Thread
Numpy Help - by BlackHeart - Oct-23-2017, 11:28 PM
RE: Numpy Help - by metulburr - Oct-23-2017, 11:43 PM
RE: Numpy Help - by Larz60+ - Oct-23-2017, 11:47 PM
RE: Numpy Help - by metulburr - Oct-23-2017, 11:56 PM
RE: Numpy Help - by BlackHeart - Oct-24-2017, 12:12 AM
RE: Numpy Help - by metulburr - Oct-24-2017, 01:10 AM
RE: Numpy Help - by BlackHeart - Oct-24-2017, 01:57 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020