erwanp / pytexit

Convert a Python expression to a LaTeX formula
https://pytexit.readthedocs.io/
Other
114 stars 31 forks source link

pip installation issue #12

Closed vstadnytskyi closed 3 years ago

vstadnytskyi commented 5 years ago

Somehow if I use

pip install pytexit

I get successful installation

user:user$ pip install pytexit
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting pytexit
  Downloading https://files.pythonhosted.org/packages/62/4d/61536e30e8ebd537ad4f3dfb71e2ac595f4a9644d7dd85b5699b7025e9c9/pytexit-0.3.3-py2.py3-none-any.whl
Requirement already satisfied: six in /usr/local/lib/python2.7/site-packages (from pytexit) (1.12.0)
**Installing collected packages: pytexit**
Successfully installed pytexit-0.3.3

but I cannot use it since it cannot find it

In [2]: from pytexit import py2tex
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-2-20e6f2ec1c33> in <module>()
----> 1 from pytexit import py2tex

ImportError: No module named pytexit

I also cloned the git repository and I can run the code from there. I wonder if there is something wrong with installation.

erwanp commented 5 years ago

Hello @vstadnytskyi . This may happen if you have multiple python installations. Your default pip seems to install in /usr/local/lib/python2.7/site-packages. Where is your default Python installed? (what's the output of which python ?)