I try to import gym module of python inside julia by using PyCall.jl library.
To make it, I applied the followings:
$ julia
julia> using PyCall
julia> gym = pyimport("gym")
ERROR: PyError (:PyImport_ImportModule) <type 'exceptions.ImportError'>
ImportError('No module named gym',)
On the otherhand, if I directly try to import it within python, I was able to do that without any error
$ python
>>> import gym
>>> # no error here
Finally, to test whether PyCall package have problem or not, I tried to call another python module "sys" with the same way. There wasn't any problem with that:
$ julia
julia> using PyCall
julia> sys = pyimport("sys")
PyObject <module 'sys' (built-in)>
Is there anyone who could have any idea about my problem?
Here is my python version :
$python
Python 2.7.12 |Anaconda 4.1.1 (64-bit)| (default, Jul 2 2016, 17:42:40)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>>