I am having problems in using future package in h2o:
base) usr#usr-X705UDR:~$ pip install future
Requirement already satisfied: future in /usr/lib/python3/dist-packages (0.18.2)
(base) usr#usr-X705UDR:~$ python
Python 3.8.12 (default, Oct 12 2021, 13:49:34)
[GCC 7.5.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import future
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'future'
>>>
How to rectify this?
Related
Although I installed the below library, I am not able to use it:
$ pip3 install gffpandas
Requirement already satisfied: gffpandas in /usr/local/lib/python3.7/site-packages (1.2.0)
$ python
Python 3.7.3 | packaged by conda-forge | (default, Jul 1 2019, 14:38:56)
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import gffpandas.gffpandas as gffpd
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'gffpandas'
What did I miss?
Thank you in advance,
I try to install libtorrent-rasterbar, but Python does not see the module. The El Captaine system. Tell me where to look?
andrew: ~ $ brew install python3
Warning: python3-3.6.0_1 already installed
andrew: ~ $ brew install libtorrent-rasterbar
Warning: libtorrent-rasterbar-1.1.1 already installed
andrew: ~ $ python
Python 3.6.0 (default, Mar 4 2017, 12:32:37)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import libtorrent
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'libtorrent'
>>>
For python2 it work: https://gist.github.com/jacobzelek/ecb6e98feb91d911e231
May be for python3 is similarly
When I try to import the Image module, it fails to find the module.
nn-MacBook-Pro-3:~ nn$ python
Python 2.7.6 (default, Sep 9 2014, 15:04:36)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import Image
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named Image
>>>
Pip list shows that it is installed.
nn-MacBook-Pro-3:~ nn$ pip list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
appnope (0.1.0)
bleach (1.5.0)
cycler (0.9.0)
dask (0.13.0)
decorator (4.0.11)
distribute (0.7.3)
Django (1.10.5)
email (6.0.0a1)
entrypoints (0.2.2)
Flask (0.10.1)
html5lib (0.9999999)
image (1.5.5)
I'm using Mac's default python version.
nn-MacBook-Pro-3:~ nn$ python
Python 2.7.6 (default, Sep 9 2014, 15:04:36)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
The PYTHONPATH variable seems to be empty, but when I try to import other already installed packages it does not show the "no module found" error.
nn-MacBook-Pro-3:~ nn$ echo $PYTHONPATH
I have also tried everything stated here, but it didn't work for me.
Update
As Suggested that modules are case sensitive, I tried the following, it but didn't work either.
nn-MacBook-Pro-3:~ nn$ python
Python 2.7.6 (default, Sep 9 2014, 15:04:36)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import image
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named image
you need to do import image instead of import Image
module names are case-sensitive
After running easy_install protobuf I'm getting this:
Using /Library/Python/2.7/site-packages/protobuf-2.5.0-py2.7.egg
Processing dependencies for protobuf
Finished processing dependencies for protobuf
Which (I guess) means that it thinks it's OK but when I try to import google.protobuf I get an error.
Eyals-MacBook-Pro:python2.7 eredler$ python
Python 2.7.5 (default, Mar 9 2014, 22:15:05)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import google.protobuf
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named google.protobuf
I would appreciate any assistance regarding this.
Thanks
I am on Centos 6 Linux
When i try this
Python 2.7.3 (default, Nov 23 2012, 18:02:22)
[GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> import readline
Traceback (most recent call last):
File "<console>", line 1, in <module>
ImportError: No module named readline
>>>
I try to install python readline with pip and i get this
virtualenv/bin/pip-2.7 install readline
Requirement already satisfied (use --upgrade to upgrade): readline in ./virtualenv/lib/python2.7/site-packages/readline-6.2.4.1-py2.7-linux-x86_64.egg
Cleaning up...
what should i do
EDIT:
I tried this as well
[myhost]$ virtualenv/bin/python2.7
Python 2.7.3 (default, Nov 23 2012, 18:02:22)
[GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import readline
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named readline
>>>
I tried all that
(virtualenv)[aaaaaa]$ source virtualenv/bin/activate
(virtualenv)[aaaaaa]$ virt
virtualenv/ virtualenv-clone virtualenvwrapper.sh
virtualenv-2.7 virtualenvwrapper_lazy.sh virt-what
(virtualenv)[aaaaaa]$ virtualenv/bin/pip
pip pip-2.7
(virtualenv)[aaaaa]$ virtualenv/bin/pip install readline
Requirement already satisfied (use --upgrade to upgrade): readline in ./virtualenv/lib/python2.7/site-packages/readline-6.2.4.1-py2.7-linux-x86_64.egg
Cleaning up...
(virtualenv)[aaaaa]$ python
Python 2.7.3 (default, Nov 23 2012, 18:02:22)
[GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import readline
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named readline
>>>
I tried all vitual env and activating as well. But again i get same error
You need to actually activate the environment you want to use, not just run the python binary from the enviroments bin folder:
$ source /path/to/envirn/bin/activate
$ pip install readline
$ python
> import readline
A workaround that worked for me is to re-install readline:
$ source /path/to/env/bin/activate
$ pip uninstall -y readline
Uninstalling readline-6.2.4.1:
Successfully uninstalled readline-6.2.4.1
$ pip install readline
Collecting readline
Installing collected packages: readline
Successfully installed readline-6.2.4.1