python install speex dsp module error - python

I would like to ask a question about the installing speexdsp module in python installed with Anaconda3.
I downloaded the swigwin-3.0.12 from website and add it to my system variable, as well as my python35.lib and the python\include. However, I get the following message:
cl.exe' failed with exit status 2
From my research, it looks like this could be solved by adding it to system variable, but doing that didn't solve the problem for me.

If you are using ubuntu thn use this command.
sudo apt-get install build-essential libspeex-dev libspeexdsp-dev
libpulse-dev
On mac (homebrew)
brew install speex speexdsp
Speexdsp git
Speex official website
Get info from their official website.

Related

pip3 cannot determine archive format - atlasplots installation

i am trying to install Atlas Plots, but i am getting some errors. I tried to install it with the following command line:
pip3 install https://github.com/joeycarter/atlas-plots
But when i run it, terminal shows me the following error:
Cannot determine archive format of /tmp/pip-req-build-o2c8xrmg
And this command line is the only option available in the installation tutorial on the software site, which is:
https://atlas-plots.readthedocs.io/en/latest/getting_started.html#installing-atlasplots
And i need this atlasplots in my research, so i would appreciate any help.
The correct syntax to install from a Github repo are:
pip install "git+https://github.com/joeycarter/atlas-plots.git#egg=atlasplots"
or
pip install "git+ssh://git#github.com/joeycarter/atlas-plots.git#egg=atlasplots"
See the docs at https://pip.pypa.io/en/stable/cli/pip_install/#vcs-support
Report the problem at https://github.com/joeycarter/atlas-plots/issues or better send a pull request fixing https://github.com/joeycarter/atlas-plots/blob/master/docs/getting_started.rst

Failed to find TIFF header file (tifflib error on python - Ubuntu 20.04)

I have the following error
ValueError: Failed to find TIFF header file (may be need to run: sudo apt-get install libtiff4-dev)
I already ran:
sudo apt-get install libtiff-dev:i386
sudo apt-get install libtiff-dev
But I still getting the tiff header error.
I searched for some solutions but didn't find anything.
Someone have any idea how to solve this?
This problem seems to recur in python virtual environments, and even though I solved it before (mentioned above by #vinicvaz), I ended up here because I forgot how I fixed it.
The short-term solution is to copy the gist tiff_h_4_1_0.py to wherever the python libtiff got installed (for e.g. venv/lib/python2.7/site-packages/libtiff/tiff_h_4_1_0.py).
But this won't work when the libtiff library gets updated again past 4.1.0. To fix it with later versions, copy the tiff.h library header from /usr/include/x86_64-linux-gnu/tiff.h to venv/include/ (create the include directory in venv if it doesn't exist). This will cause the new version of the tiff_h_x_y_z.py file to get generated the first time you import libtiff.
After a long time searching for a answer I found this discussion on github
igg answer helped me
Same here on ubuntu 20.04, fresh upgrade from 18.04. apt installed libtiff-dev, in python venv, pip install libtiff. Import libtiff in python results in tiff.h not found. copy from /usr/include/x86_64-linux-gnu/tiff.h to venv/include/ fixes it.

Pip installing wrong version on win7,

I have a package that I am trying to install via pip install allen-bradley-toolkit. The package is failing with the following reason.
The problem seems to related to the fact that pip is trying to install 1.0a1.post0 instead of the latest release version 2.0.0. Does anyone have any ideas on what to do about this. Perhaps there is something wrong in my deployment script. You can view the Github Library here to see how I am deploying to PyPi.
There is an issue opened on the GitHub Tracker #2 that you can also reference for more info.
NOTE: The package seems to install fine on my win10 machine. But I am unable to get it to install on a win7 VM.
Ive also tried installing with the following commands:
pip install --no-cache-dir allen-bradley-toolkit
pip install allen-bradley-toolkit==2.0.0 -> this ones throws a 'doesnt exist error`
At https://pypi.python.org/pypi/allen-bradley-toolkit/2.0.0 I see that the wheel is only available for Python 3. You're trying to install it with Python 2.7.
To publish a universal wheel (suitable for both Py2 and Py3) you need to set
[bdist_wheel]
universal = 1
in setup.cfg or run
python setup.py bdist_wheel --universal
The 2nd line of the output has a clue to the problem - "Using cached ..."
You can skip the cache using the --skip-cache --no-cache-dir option to pip install or request an upgrade using the -U option
edit: updated comment with the correct option (although, seems like that wasn't the problem in this specific case).

Module installation in python returning "Could not find any downloads that satisfy the requirement" error?

Unfortunately I cannot install any modules on python 3.4 32 Bit using the pip command due to the following error.
How do I get around the problem. I have removed all other installations of python and have installed the 32 Bit version rather than the 64 Bit one?
Thanks
Edit 1:
At the moment I can't even upgrade pip
Edit 2
Unfortunately it still returns an error.
Try upgrading your pip with
python -m pip install -U pip
If this fails too, it has to be a network problem. See if you're properly connected to internet.
Seems like you might be using an old version of PIP which is facing SSL certification issues and is hence unable to connect. You can do a manual reinstall of pip using these commands.:
python -m pip uninstall pip setuptools
Then, download this script
Finally, run the script with:
python get-pip.py

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).

Categories

Resources