Brew Installing Python3 on El Capitan - python-3.x

I need to install Python3, Pip, and PySerial. I attempted to follow this Stackoverflow thread on installing Python3 via Homebrew. However, when I manually go in and check, Python3 is in:
usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula
I am assuming this isn't the proper location? At this point should I install python3 via Homebrew and start over?

Nevermind, I figured it out. A combination of reinstalling python3, and removing unbrewed header files via brew doctor fixed the issue.

Related

Spyder, clean Win installation, ver. 4.2.3 - pip gives message "No module named pip"

I have Spyder, clean Win10 installation, ver. 4.2.3.
When I run command pip, it gives message:
Note: you may need to restart the kernel to use updated packages.
C:\Users\UserName\AppData\Local\Programs\Spyder\Python\python.exe: No module named pip
I restarted Spyder, Win10, nothing helps.
How to fix it?
Thanks.
(Spyder maintainer here) We don't provide pip in our Windows app to prevent people breaking Spyder by installing any kind of packages with it.
The best way to use other packages that don't come with our app is to install Miniconda, create a conda environment after that with the packages you want to use and spyder-kernels, and finally connect Spyder to that env.
If you have python 3.4+ then pip should be installed with python.
To check that, you can run
pip help
in your windows command line.
However, if it isn't the case then download the get-pip.py file and run
python get-pip.py
and the pip installation should start. You can use pip help to verify this.
Another source of the problem might be that pip isn't listed in your PATH variables and thus isn't recognized by your command line.

How to fix EnvironmentError when installing modules using pip?

When trying to install requests or literally anything using pip it'll collect the option and then give me this ERROR every time. I can't use pip to install anything.
C:\Users\evand>pip3 install requests
Collecting requests
ERROR: Could not install packages due to an EnvironmentError: Could not find a suitable TLS CA certificate bundle, invalid path: path/to/ca-bundle.crt
Version of pip:
C:\Users\evand>pip --version
pip 19.2.3 from c:\users\evand\appdata\local\programs\python\python38-32\lib\site-packages\pip (python 3.8)
Version of Python:
C:\Users\evand>py --version
Python 3.8.3
Current Environment Variables (If this is related at all)
I have also tried the 'Repair' option using the Python Installer as well as uninstalling then reinstalling as a custom installation with 'Add to PATH' and the other options. That didn't fix the issue, so I deleted pip along with every module installed on my computer then reinstalled pip. Nada. At this point, I can no longer program with this computer because I cannot import any module in any of my scripts. I am not sure why this issue suddenly arose. Help would be very much appreciated.
This worked for me:
Uninstalling the pip configuration file in %appdata%/pip/ then 'modifying' python using the python launcher.

Can't install TA-LIB?

I'm using Spyder 4.0.1 and Python 3.7 and trying to:
pip install ta-lib
however, after a few cmdwindows pop open and auto-close very quickly at the beginning, nothing seems to be happening and the iPython console is just stick on "pip install ta-lib" with no new In[]: box showing.
I have tried manually stopping and restarting the kernel and then retrying but the same thing happens. Can someone help troubleshoot?
Many thanks!
I don't know which OS you are using, but in MacOS what I did was:
1) Installed ta-lib using brew.
brew install ta-lib
2) Then Ran the pip install TA-Lib command.
The above step should work in most of the cases, but one of my friend was facing some issue with gcc, if you are facing any issue related to gcc, try installing gcc. For installing gcc you can use the command:
brew install gcc
Hope this helps.

If anaconda has a package and it is not in pip, how do I install it?

I want to install gudhi packages.
It seems that the package only says that it can be installed only with anaconda. But I want to install it with pip , not anaconda.
When I checked the package, I found a zip file called tar.bz2, which I tried to install using it, but I can not figure out what to do.
And I do not know if this is the right way.
So I would like to seek advice.
Thank you for reading.
There is no pip install gudhi available.
If you don't want to go with conda, you will have to follow the installation guide.
If make cython works, you can then [sudo] python[3] setup.py install to install it on your system.
[EDIT]
A gudhi pip package is now available.

pygraphviz multiple edges from the same node aren't working on Mac OS X

I installed dependencies like this.
brew install python
brew install graphviz
pip3 install --user --install-option="--include-path=/usr/local/include/" --install-option="--library-path=/usr/local/lib/" pygraphviz
After that I tried a simple script (copy-pasted from somewhere in the internet). Multiple edges simply are not working! I set strict=False, but it didn't help.
import pygraphviz as pgv
G=pgv.AGraph(strict=False)
G.add_node('a')
G.add_node('b')
G.layout()
G.add_edge('a','b','first')
G.add_edge('a','b','second')
sorted(G.edges(keys=True))
G.draw('file.png')
Everytime I execute this script, what I got is this.
What am I doing wrong?
brew install graphviz --HEAD which installs version graphviz: stable 2.40.1 (bottled), HEAD resolves problem for me.
Other have reported that this issue is bug #162, but it seems to be different problem.

Resources