Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy
 

How to install nle via python pip




nle - The NetHack Learning Environment (NLE): a reinforcement learning environment based on NetHack, it belongs to Classifiers:

- License :: OSI Approved :: Nethack General Public License
- Programming Language :: C
- Programming Language :: C++
- Topic :: Games/Entertainment
- Topic :: Scientific/Engineering :: Artificial Intelligence

When you know about this project and you want to new install nle to support your project or you get trouble as ModuleNotFoundError: No module named "nle" or ImportError: cannot import name "nle" in your project, let follow this tutorial to install nle



Installation:

Step 1: First, ensure you installed pip in your os, to check pip has been installed on your computer

In Windows (CMD):

py -m pip --version

In Unix/macOS:

python3 -m pip --version

Ensure pip, setuptools, and wheel are up to date:

In Windows (CMD):

py -m pip install --upgrade pip setuptools wheel

In Unix/macOS:

python3 -m pip install --upgrade pip setuptools wheel


Optional - If you want to install in virtual environment:

In Windows (CMD):

- Install virtualenv - if you installed it, please ignore

py -m pip install --user virtualenv

- Create a virtual environment

py -m venv test_nle_env

- Active the virtual environment

test_nle_env\Scripts\active

In Unix/macOS:

- Install virtualenv - if you installed it, please ignore

pip3 install virtualenv

- Create a virtual environment

python3 -m venv test_nle_env

- Active the virtual environment

source test_nle_env/bin/active


Step 2: OK, now, let flow below content to start the installation nle

To install nle on Windows(CMD):

py -m pip install nle

To install nle on Unix/macOs:

pip install nle


Step 3: If you want to install a specific nle version, add ==<nle version> to the end command line

Example:

pip install nle==0.1.0


Please see the version list below table:

VersionReleased dateCommand
nle 0.8.12021-12-16T19:06:34Windows:

py -m pip install nle==0.8.1

Unix/macOs:

pip install nle==0.8.1

nle 0.8.02021-11-25T12:01:10Windows:

py -m pip install nle==0.8.0

Unix/macOs:

pip install nle==0.8.0

nle 0.7.32021-07-21T19:43:12Windows:

py -m pip install nle==0.7.3

Unix/macOs:

pip install nle==0.7.3

nle 0.7.22021-06-23T19:14:41Windows:

py -m pip install nle==0.7.2

Unix/macOs:

pip install nle==0.7.2

nle 0.7.12021-06-17T15:07:43Windows:

py -m pip install nle==0.7.1

Unix/macOs:

pip install nle==0.7.1

nle 0.7.02021-06-08T16:36:59Windows:

py -m pip install nle==0.7.0

Unix/macOs:

pip install nle==0.7.0

nle 0.6.12021-06-04T19:54:50Windows:

py -m pip install nle==0.6.1

Unix/macOs:

pip install nle==0.6.1

nle 0.6.02020-11-26T16:33:57Windows:

py -m pip install nle==0.6.0

Unix/macOs:

pip install nle==0.6.0

nle 0.5.22020-09-30T16:33:15Windows:

py -m pip install nle==0.5.2

Unix/macOs:

pip install nle==0.5.2

nle 0.5.02020-09-18T14:48:05Windows:

py -m pip install nle==0.5.0

Unix/macOs:

pip install nle==0.5.0

nle 0.2.02020-07-30T14:38:00Windows:

py -m pip install nle==0.2.0

Unix/macOs:

pip install nle==0.2.0

nle 0.1.22020-06-22T11:19:44Windows:

py -m pip install nle==0.1.2

Unix/macOs:

pip install nle==0.1.2

nle 0.1.12020-05-08T12:15:10Windows:

py -m pip install nle==0.1.1

Unix/macOs:

pip install nle==0.1.1

nle 0.1.02020-05-05T17:22:59Windows:

py -m pip install nle==0.1.0

Unix/macOs:

pip install nle==0.1.0


Step 4: Otherwise, you can install nle from local archives:

Download the distribution file from nle-0.8.1.tar.gz or the specific nle version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_nle_downloaded_file>

On Unix/macOs:

pip install <path_to_nle_downloaded_file>


List distribution:

- nle-0.1.0.tar.gz (python version >=3.5)
- nle-0.1.1.tar.gz (python version >=3.5)
- nle-0.1.2.tar.gz (python version >=3.5)
- nle-0.2.0.tar.gz (python version >=3.5)
- nle-0.5.0.tar.gz (python version >=3.5)
- nle-0.5.2.tar.gz (python version >=3.5)
- nle-0.6.0.tar.gz (python version >=3.5)
- nle-0.6.1.tar.gz (python version >=3.5)
- nle-0.7.0.tar.gz (python version >=3.5)
- nle-0.7.1.tar.gz (python version >=3.5)
- nle-0.7.2.tar.gz (python version >=3.5)
- nle-0.7.3.tar.gz (python version >=3.5)
- nle-0.8.0.tar.gz (python version >=3.5)
- nle-0.8.1.tar.gz (python version >=3.5)
- nle-0.9.0.tar.gz (python version >=3.5)


Project link:

- Homepage