Reinforcement-learning: Cannot import plotting from lib ?

Created on 1 May 2017  路  6Comments  路  Source: dennybritz/reinforcement-learning

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

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.

All 6 comments

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?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rushabhk7 picture rushabhk7  路  6Comments

gskishan004 picture gskishan004  路  6Comments

IbrahimSobh picture IbrahimSobh  路  19Comments

nerdoid picture nerdoid  路  78Comments

ArikVoronov picture ArikVoronov  路  3Comments