Answer Upgade pip as follows: curl https://bootstrap.pypa.io/get-pip.py | python It can be usefull for you, maybe you have to execute sudo python
Tag: macos
Multiprocessing causes Python to crash and gives an error may have been in progress in another thread when fork() was called
I am relatively new to Python and trying to implement a Multiprocessing module for my for loop. I have an array of Image url’s stored in img_urls which I need to download and apply some Google vision. This is my runAll() method I am getting this as the warning when I run it and python crashes Answer This error occurs
Getting error while trying to run this command ” pipenv install requests ” in mac OS
I am facing the following error: Virtualenv location: I tried setting the LANG in ~/.profile and ~/.bash_profile. Both didn’t work. Answer What worked for me on Mac OS X Sierra is adding the following into my ~/.bash_profile file: Then I reloaded the bash profile with: source ~/.bash_profile For those who use zsh shell, you must add those lines to your
Hg Git Pull Causes Too Many Open Files Error
I have a Mercurial repository that tracks a git repository. It was working ok on Windows 10. Now I moved it to a Mac as a directory, then ran hg reset -Ca just to clean it up. Now I am trying to run hg pull It causes an error like this: I checked and it looks like I have latest
How do I upgrade to Python 3.6 with conda?
I want to get the latest version of Python to use f-strings in my code. Currently my version is (python -V): How would I upgrade to Python 3.6? Answer Anaconda has not updated python internally to 3.6. a) Method 1 If you wanted to update you will type conda update python To update anaconda type conda update conda If you
Why i can’t install autopy?
I’m using MacBook and Operating System is MacOS Sierra. I use this command to install autopy: But i get this error: Why am i getting this error? Answer There is a known issue that for some reason wasn’t fixed. Issue: https://github.com/msanders/autopy/issues/75 It contains following workaround (commands to type in console):
pip installs packages successfully, but executables not found from command line
I am working on mac OS X Yosemite, version 10.10.3. I installed python2.7 and pip using macport as done in http://johnlaudun.org/20150512-installing-and-setting-pip-with-macports/ I can successfully install packages and import them inside my python environment and python scripts. However any executable associated with a package that can be called from the command line in the terminal are not found. Does anyone know
How to create OS X app with Python on Windows
I need to automate a cross-platform application build. Entire build runs on Windows machine. Part of it is written in Python and compiles for OS X. Currently this part of build is done manually on OS X. I tried pyinstaller but it looks like it only building for the platform that it is running on. I also tried py2app but
Error Installing Psycopg2 on MacOS 10.9.5
I’m trying to install Psycopg2 on my Macbook, but I am getting an error. I found a lot of the same questions on StackOverflow but no answer seems to work. I’m using: OS: MacOS 10.9.5 Python Version: 3.4.3 My error code is: Answer I ran pip install psycopg2-binary and it worked like charm More info about the binary package Python
How to install pyaudio on mac using Python 3?
I first tried: but I was told that Then I tried: Then I got: but I had installed portaudio Warning: portaudio-19.20140130 already installed So what can I do? Answer I’m assuming you are on a Mac. This is a simple issue to fix. First install Xcode. Then restart your computer. Afterwards run the commands in sequence, So to clarify, Xcode