installing a python package not supported by pip or conda into Anaconda on Windows
Question:
I have a python package i would like to install or link into Anaconda.
I currently have the package, http://www.physics.rutgers.edu/pythtb/install.html
, running by setting up both stock python and Anaconda separately on my Windows machine. (I can only run the desired package in stock python) Ideally, I would like to use the package in Anaconda.
The package i installed came in as an exe file and all i needed to be able to use it in stock python was just to run the exe file.
i have done some googling and found python setup.py install
as a way to do just that ( from https://python4astronomers.github.io/installation/packages.html
)
It made very little sense to me (im not sure if it’s even applicable to my case).
Answers:
- Make sure you have 64 bit python
- Make sure that the version of
python
when you type C:> python
is the one you want, e.g it is from Anaconda
- Make sure you have numpy & matplotlib installed for this python
- Download pythtb-1.6.2.zip to your working directory
- Unzip it in this directory, you should see a
setup.py
there
- run
python setup.py install
Alternately, with the wheel package installed, one can run wheel convert pythtb-1.6.2.exe
on a wininst exe installer to convert it into a wheel that is installable by pip.
I have a python package i would like to install or link into Anaconda.
I currently have the package, http://www.physics.rutgers.edu/pythtb/install.html
, running by setting up both stock python and Anaconda separately on my Windows machine. (I can only run the desired package in stock python) Ideally, I would like to use the package in Anaconda.
The package i installed came in as an exe file and all i needed to be able to use it in stock python was just to run the exe file.
i have done some googling and found python setup.py install
as a way to do just that ( from https://python4astronomers.github.io/installation/packages.html
)
It made very little sense to me (im not sure if it’s even applicable to my case).
- Make sure you have 64 bit python
- Make sure that the version of
python
when you typeC:> python
is the one you want, e.g it is from Anaconda - Make sure you have numpy & matplotlib installed for this python
- Download pythtb-1.6.2.zip to your working directory
- Unzip it in this directory, you should see a
setup.py
there - run
python setup.py install
Alternately, with the wheel package installed, one can run wheel convert pythtb-1.6.2.exe
on a wininst exe installer to convert it into a wheel that is installable by pip.