Answer the question
In order to leave comments, you need to log in
How to write PYTHONPATH correctly?
Hello.
I installed the package from the sources, everything is OK:
...
Installed /usr/local/lib/python3.5/dist-packages/keras_segmentation-0.2.0-py3.5.egg
Processing dependencies for keras-segmentation==0.2.0
Finished processing dependencies for keras-segmentation==0.2.0
(base) [email protected]:~/image-segmentation-keras$ python3
Python 3.7.3 (default, Mar 27 2019, 22:11:17)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import keras_segmentation
Using TensorFlow backend.
>>> exit()
(base) [email protected]:~$ python3
Python 3.7.3 (default, Mar 27 2019, 22:11:17)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import keras_segmentation
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'keras_segmentation'
>>>
>>> import sys
>>> sys.executable
'/home/user/anaconda3/bin/python3'
(base) [email protected]:~$ sudo env "PATH=$PATH" python3 setup.py install
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question