Installing Pillow on FreeBSD based shell hosting - python

I'm struggling with Pillow on my shell hosting based on FreeBSD.
Running pip install Pillow (inside virtualenv, if it does matter) results with this:
http://justpaste.it/ich2
I have absolutely no idea what's wrong. Someone knows the problem?

Ok, running installer with MAX_CONCURRENCY=1 pip install pillow did the trick.
Maybe it will be useful for someone.

Suggested way is to install from packages; they often contain patches that fix various system-specific problems. Doing "pkg search pillow" shows that you can do "pkg install py27-pillow".

Related

installing basemap/geos in mac by source code

I know there is some posts about the installation of basemap, but after I follow every step from the instruction here, it still not work for me.
https://matplotlib.org/basemap/users/installing.html
When I run python setup.py install, it keeps complaining "geos_c.h" file not found. How do I know I have installed geos correctly? When I make, there are a lot of output but no way to know if it install successfully.
Thanks!
problems solved guys!
Instead of installing the geos from the package in the basemap, I use brew to install it (and proj), then python setup.py install to install basemap again, it work!

installed pip package not found

I was just given a new mac and after installing pip and lcc through pip I get a command not found error when running lcc run.
When running help("modules") inside of python I can see the lcc package there.
the same goes for pip freeze
pip freeze | grep lemon
lemoncheesecake==0.15.2
I'm running out of ideas.....
maybe I messed up the pip installation because I did it first with:
python get-pip.py
and then with
sudo easy_install pip
how do I fix this?
this is my echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
Thanks
From what you're saying it seems that your python installation is not quite right, and Mac's version of python is also not quite right by default, you can read more about it here: http://docs.python-guide.org/en/latest/starting/install/osx/#doing-it-right
Also, I would highly advise that when you get a brand new Mac and plan to do some development work as a rule of thumb follow these steps:
Install xcode
Install Homebrew
Then you can install anything else you want.
I think the problem is due to the fact you have more than one version of python installed. Package installed by pip are visible to one version, but not to the other. I think this issue is quite common, and has already been answered (for example) here:
Too many different Python versions on my system and causing problems
To check that this is the case:
pip show Icc
should tell you where Icc was installed.
import sys
print sys.path
should tell where python looks for modules.

How do I install packages/modules for Python 3.6?

I'm super new to Python, and can't figure out how to install packages or modules. I know you can use Pip to easily install them, but none of the commands I've found have done anything but give me errors. Any help would be appreciated.
Have you tried pip install? A good thing to remember is pip usually requires sudo on linux distributions. Also, for some modules it's easier to use conda, since it takes care of dependencies. It this is the best general information I can give. If you told me some packages you've tried to install, that would help a lot!

Installing the ahkab packages of Python

I've one problem, when I try to install the 'ahkab' packages on Linux, Ubuntu based, for Python with the command pip (pip install ahkab).
You can to see my problem on image below. I don't know what do I need to do to solve this case.
I think you may need to run with super user permission while installing.
Use sudo in-front of you command.

Installing numpy/matplotlib/etc. on Mac

I am very new to python, and am having difficulty getting any packages from online to install properly. I'm pretty sure I'm doing something fundamentally wrong, but since I am new to language I am unsure of what it is. I have read through several online sources but still can't get it to work. I feel really dumb asking this, but I would greatly appreciate it if someone could walk me through how to install it starting from the point of downloading the package online. Thanks!
If your primary use case is the scipy stack, for example as a Matlab replacement. I would highly recommend using the Anaconda distribution. It is brilliant for new comers, a large majority of what you are likely after comes pre installed.
Download it here:
https://www.continuum.io/downloads#_macosx
I would recommend picking the python 3 64bit installer. A direct link to the download is here:
https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda3-2.3.0-MacOSX-x86_64.pkg
Your best bet is to use Homebrew as your general package manager and then use use it to install Pip to manage all of your python packages. Both of the links below will walk you through how to do these things.
See Homebrew link
See How to install pip on Mac for Pip
Go here and download get-pip.py
Then, from terminal run the command python get-pip.py
This should install pip for you. Pip is awesome, and you really want to have it. Now, all you have to do is run this command from terminal:
pip install matplotlib
Or to get Numpy:
pip install numpy

Categories

Resources