I am running with Anaconda installed, and Python 3.5. but I cannot import plotting from lib. So the example fails
from lib import plotting
There is a small module written by author called lib. I think your python module search path has the same module name of lib. So your python finds that one, not the one you want to use. Try to rename the module lib to another name, then problem solved.
I PIP installed lib, and can do a normal import lib under python prompt.
But I still get the same error. It is not obvious where or how I rename module under Anaconda [Not listed in Anaconda], even after the PIP install.
even under plain python prompt the from lib import plotting fails.
So pretty sure that lib is the wrong package name (refers to lib 3.0.0 as being stdlib Python Bindings, microservice by Keith Horwood ?)
Is that the right package ??
You don't want the lib package that you install from pip. You want the lib directory that comes in dennybritz repo. You can find that lib folder here: https://github.com/dennybritz/reinforcement-learning/tree/master/lib
You can find "lib" in this repo as AurelianTactics mentioned. Rename the "lib" folder and import it as the changed name.
If we are doing it on google colaboratory then how should we add this lib??
What is the process for installing this package however?
I dropped the lib folder as 'reinforcementlearninglib' into my directory Users/XYZ/anaconda/pkgs
and then tried to call it
from reinforcementlearninglib import plotting
and got the following error
ModuleNotFoundError: No module named 'reinforcementlearninglib'
and when i try to pip install reinforcementlearninglib
'Collecting reinforcementlearninglib
Could not find a version that satisfies the requirement reinforcementlearninglib (from versions: )
No matching distribution found for reinforcementlearninglib'
Am I doing something wrong here?
Most helpful comment
There is a small module written by author called lib. I think your python module search path has the same module name of lib. So your python finds that one, not the one you want to use. Try to rename the module lib to another name, then problem solved.