How to get libicui18n.so.36 ? - python

I try to install PyICU but it require libicui18n.so.36
I dont know How to get it could you help me please...

If you are on Ubuntu, try installing the python-pyicu package, which should take care of any binary dependencies, instead of trying to install from the sources:
$ sudo apt-get install python-pyicu
Alternatively, if you really need to install from the source package (e.g. with pip install pyicu), you'll need to the libicu development package installed:
$ sudo apt-get install libicu-dev

Related

How can I add python-dev package to requirements.txt?

I am trying add the python-dev package to my requirements.txt file, but I must be using the wrong package name. I have tried:
python3.7-dev
python-dev
py-dev
If you want to install package at OS level you should seriously consider using a docker container to deploy/release your application.
Here is a snippet:
FROM python
RUN apt-get install python-dev
RUN pip install -r requirements.txt
...
I guess there's great explanation about how to install it:
How to install python developer package?
For it's installing you should use your operation system package manager, such as:
yum, dnf, apt-get, brew or kinda

How do we install yaafe on linux?

I've been trying to install Yaafe Library on my linux system, but I'm unable to do it as I can't compile the yaafe source using ccmake. Does anyone have the detailed step-by-step procedure for the same?
I tried to follow the instructions, which failed for me during compile. The ccmake can be replace by cmake. I could not install libhdf5-serial-1.8.4, because it was integrated in the main package.
Alternative approach
An alternative to yaafe would be librosa, which has the advantage of being available via PyPi. You install it via (assuming Debian/Ubuntu)
apt-get install pip
(for the PyPi client), and
pip install librosa
if you follow their advice and install scikits.samplerate, you also need libsamplerate0-dev:
apt-get install libsamplerate0-dev
The home page of the library includes a thorough manual for compiling yaafe.
I am citing the beginning here:
$ sudo apt-get install cmake cmake-curses-gui libargtable2-0 libargtable2-dev libsndfile1 libsndfile1-dev libmpg123-0 libmpg123-dev libfftw3-3 libfftw3-dev liblapack-dev libhdf5-serial-dev libhdf5-serial-1.8.4
$ mkdir build
$ cd build
$ ccmake -DCMAKE_PREFIX_PATH=<lib-path> -DCMAKE_INSTALL_PREFIX=<install-path> ..
see the rest there.
That's what I had to do in Ubuntu 14.04 to get it working:
sudo apt-get install build-essential -y
sudo apt-get install libeigen3-dev
sudo apt-get install cmake cmake-curses-gui libargtable2-0 libargtable2-dev libsndfile1 libsndfile1-dev libmpg123-0 libmpg123-dev libfftw3-3 libfftw3-dev liblapack-dev libhdf5-serial-dev libhdf5-7
Download Yaafe from here:https://github.com/Yaafe/Yaafe/archive/master.zip
Extract Yaafe-master.zip
Inside Yaafe-master directory:
mkdir build
cd build
ccmake ..
make
sudo make install
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/
Also add this path to your IDE (Enviromental Variables) if yaafe does not work with it.
I just installed it using Anaconda, and it was extremely easy! Just install Anaconda like the link tells you to. On the last step, I recommend you allow Anaconda to modify your PATH so that when you type python on the command line, it uses the Anaconda version of Python. Then restart your terminal, just to make sure it's using the Anaconda stuff you just installed.
Then, assuming you're using Ubuntu, you just need to type the following command:
conda install --channel https://conda.anaconda.org/Yaafe yaafe

Reinstalling python on CentOS to be able to use yum

I messed up big time and I removed the python package on a CentOS server. After then I realized yum was dependant on python and I could no longer use yum. I think I need to reinstall python to fix the problem. How can I do this without using yum?
I tried:
sudo wget
http://mirror.centos.org/centos/6/os/x86_64/Packages/python-2.6.6-51.el6.x86_64.rpm
then
sudo rpm -ivh python-2.6.6-51.el6.x86_64.rpm
but I'm getting the error:
error: Failed dependencies: python-libs(x86-64) = 2.6.6-51.el6 is
needed by python-2.6.6-51.el6.x86_64 python < 2.6.6-52.el6 conflicts
with python-devel-2.6.6-52.el6.x86_64
Please any suggestion?
I think you might need to download python-2.6.6-52.el6.x86_64.rpm instead.
rpm link is not working any more...
you can use the command in centOS for sudo user like:
sudo yum install http://mirror.centos.org/centos/6/os/x86_64/Packages/python-2.6.6-51.el6.x86_64.rpm
without dependencies:
sudo yum install --nodeps http://mirror.centos.org/centos/6/os/x86_64/Packages/python-2.6.6-51.el6.x86_64.rpm
You do not need to download it.
Try installing with --nodeps parameter.
# sudo rpm --nodeps -ivh python-2.6.6-51.el6.x86_64.rpm

transifex Error cannot import name six

I download and install the transifex with several steps but I always get Error cannot import name six:
apt-get install python-dev
apt-get install gcc make
install python python-setuptools python-imaging
easy_install transifex
easy_install pip
pip install django-celery
How can I run the transifex without error?
I had the same problem. In my case, there were some unneeded libraries floating around that got in the way, and sudo apt autoremove fixed it. I was also missing urllib3.exceptions, which I installed with pip install urllib3.

How to install which programs requires "sudo" in virtualenv?

I'm trying to install kivy, in the docs it says:
$ sudo apt-get install python-setuptools python-pygame python-opengl \
python-gst0.10 python-enchant gstreamer0.10-plugins-good cython python-dev \
build-essential libgl1-mesa-dev libgles2-mesa-dev
$ sudo easy_install kivy
But I don't want to use sudo I like to keep my projects organized in virtualenv, so how install the requirements without using sudo. apt-get install won't work unless i use sudo. and i can't find the requirements in pip. Lets say i want to install easy_install in virtualenv for example, how to do that?
I do not think you can get around installing kivy's dependent packages without sudo/root access.
Once you have them installed, follow steps outlined in Andrew's answer.
when you use virtualenv and start it running, you can use the easy_install / pip that is installed there. that doesn't require sudo because it installs directly to virtualenv.
in other words - it just works. have you tried it?
there's a simple example here http://www.arthurkoziel.com/2008/10/22/working-virtualenv/
sudo easy_install virtualenv (the last sudo you need)
virtualenv kivydir
source kivydir/bin/activate
easy_install kivy (installs to kivydir)

Categories

Resources