Installing the ahkab packages of Python - 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.

Related

multiple environment coremltools installation

Trying to install coremltools. I installed using pip but that is not the most recent version and I have run into a bug that was solved 4 days so I must build from source. I'm on a Mac virtual desktop(windows user) and I tried cmake, but since there are multiple pythons it keeps trying to install to python 3.7 when I need it to install for python 2.7.10. The github suggest doing this:
cmake . -DPYTHON=$(which python) -DPYTHON_CONFIG=$(which python-config)
.. however as someone who doesn't use cmake for package installs I'm unsure of the correct syntax could someone give me an example statement to go off of, I would really appreciate it. Thanks
You can install it without building it manually:
pip install https://github.com/apple/coremltools/archive/master.zip
You can replace "master" with any branch or tag names.
EDIT: To update an existing install add the -U flag. Or uninstall previous installations.

installing modules in python - pip, distribute, nose, virtualenv

I'm aware that there are similar questions on SO. This one, for example: What's the proper way to install pip, virtualenv, and distribute for Python?
I'd like to install these modules as per my Learn Python the Hard Way tutorial: http://learnpythonthehardway.org/book/ex46.html
I managed (I think) to install pip by using sudo easy_install pip but when I then ran pydoc modules I could not see it. So I'm not even sure it's installed.
The answer above in question 4324558 is difficult for me to understand: what's a bootstrap, what's curl and why would I set up a virtual environment? Yes, as a learner I should try to pick up as much as I can but I don't want to first create the universe, I just want to get the task at hand done.
How do I install these modules? Is it as complicated as it sounds in the quoted answer? The top voted answer says "Install virtualenv into a bootstrap virtual environment. Use the that virtual environment to create more. Since virtualenv ships with pip and distribute, you get everything from one install."
I really don't get what all that means. Isn't there something about the "Zen" of python and a one true way to get things done? Or am I out of context here? What is "the right way" to install these modules?
I tried:
pip install virtualenv in the terminal and received the following output:
Wheel installs require setuptools >= 0.8 for dist-info support.
pip's wheel support requires setuptools >= 0.8 for dist-info support.
Storing debug log for failure in /Users/myname/.pip/pip.log
I'm using a Mac and python 2.7
To solve your issue,
Just install (or upgrade) the setuptools:
sudo easy_install -U setuptools
Then you can run again: pip install virtualenv
Try adding 'sudo' in your command as-
sudo pip install virtualenv
It worked for me.
Have a look at Python Development Environment on Mac OS X Mavericks 10.9.
I followed these steps as well when trying to get Python 2.7 and Python 3.3 installed on OS X. It doesn't tell you how to install nose and distribute, but you should have a working environment and you can pick up from there.
I did have a problem using virtualenv and pip with Python 3, the question and solutions is available here.

How do I install a Python module?

Be forewarned, issues related to installing Python make me nervous. I spent an entire morning panicking what would happen when I would install Python 3.
Now on to the task. My computer is an Apple. I would like to add a python module that I have downloaded from the internet. How do I install the package?
I tried 'python setup.py install' but received an error:
error: could not create '/Library/Python/2.7/site-packages/bs4': Permission denied
Please help. Thank you.
Alternatively to installing with elevated privileges, you could also use virtualenv to create a self-contained environment in user space, then install things to that with regular user privileges. This also has other benefits over installing to the system Python, such as keeping your dependencies clear, and not accidentally breaking your system install with some funky package.
You need to use elevated privileges to do this by using sudo
sudo python setup.py install

Installing Python imaging library (PIL) on Ubuntu

Something that probably shouldn't be causing me so many problems, is.
I'm trying to install PIL on my Ubuntu server. It's installing fine. However every time I try and update the database to add the image field I get the following error:
Error: One or more models did not validate:
product.product: "image": To use ImageFields, you need to install the Python Imaging Library. Get it at http://www.pythonware.com/products/pil/ .
I've just realised I have been logged in as my user. Do i need to be logged in as root to install it? I'm doing this on a VPS not a local machine.
I've tried loads of tutorials on the web and not getting anywhere at all.
I had to install python-dev then install PIL inside my virtualenv.
All working now.
Thanks for your help all! :)
If you are not root, then entering the following command should install python-imaging:
sudo apt-get install python-imaging
Or (if you are root), the following command (without sudo) will install python-imaging
apt-get install python-imaging
You should ideally be using a virtualenv and pip install pil there... If you have access and want to use system wide packages, then you need to elevate to root (sudo) to easy_install or pip install.
Make sure your server (Django?) is rebooted so it can pick up the new libraries. (The interpreter doesn't always seem to pick up newly installed modules while it's running).

How to see the log or results from PIP

Using python PIP (pypi) in Windows 7, how can I keep the pop up window open to see the results of the install (especially if there was an issue)? Or Is there a log that I can review?
Ex:
pip install selenium2Library
I figured an easy work around.. use this:
\Python27\python.exe \Python27\Scripts\pip-2.7-script.py install eyed3
This runs in the current cmd window, instead of a new one that auto closes when done.
This isn't the best solution, because I'm still looking for a proper answer, but what is currently working for me is instead of running pip from the command prompt I'm using cygwin instead. Exactly the same commands to use it: pip install module except that cygwin seems to catch the output of the program.
Find cygwin here: http://cygwin.com/install.html
This is happening for some of my coworkers, but not me.
We had downloaded a pip binary. We fixed it by uninstalling pip, running ez_setup, then running easy_install pip.

Categories

Resources