Install locust in Anaconda - python

I´m was trying to install locustio following this steps (http://docs.locust.io/en/latest/installation.html), in my terminal:
pip install locustio
I get this:
ld: library not found for -lgcc_s.10.5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'gcc' failed with exit status 1
I also have tried with easy_install:
sudo easy_install locustio
I get the same error. After that, yesterday I was looking for information about this, and some people says that you may to need install gcc.
brew install gcc
I get this message:
Warning: gcc-5.3.0 already installed
After a couple of hours looking for information, I read about Anaconda, I install Anaconda and I create my new environment... and in my new environment I get this again:
ld: library not found for -lgcc_s.10.5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'gcc' failed with exit status 1
I´m getting crazy. I would like to work in environments but I need some of help to do this because I lost a lot time trying to resolve this problem to use locustio.
I´m using Mac Yosemite 10.10.3
My Anaconda version is 3.19.0
My Python version is 2.7.11
My gcc is gcc-5.3.0
Someone can help me?
I just wanna launch locustio in my pc =(

Related

Issues installing python package on windows

I'm trying to install python-rocksdb on a windows 10 machine and I'm coming across some issues with the install.
I have successfully installed rocksdb first using the vcpkg method.
When running pip install python-rocksdb I get the following error:
cl : Command line error D8021 : invalid numeric argument '/Wextra'
error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.34.31933\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
Looking around suggested attempting to install with GCC or G++, so I downloaded cygwin and then attempted to install the python package using
pip install --global-option build_ext --global-option --compiler=cygwin python-rocksdb which yielded the following error:
gcc: error: unrecognized command-line option ‘-mcygwin’
error: command 'C:\\cygwin64\\bin\\gcc.exe' failed with exit code 1
This post seems to suggest that you need to use g++ specifically, but it looks like the cygwin command is defaulting to gcc.
Just note that I'm not using the virtual env with python.
Any assistance is greatly appreciated.

pip install CrossMap failing on OSX: cannot find os/rand.c?

Just trying to run a
pip install CrossMap
on OSX 10.11.6 with a brew installed python (version 2.7.12) and pip (version 9.0.1) and running into this error:
htslib/hts_os.c:30:10: fatal error: 'os/rand.c' file not found
#include "os/rand.c"
^
1 error generated.
error: command 'clang' failed with exit status 1
I have looked everywhere for information on this error and it has come up empty. Where does this dependency come from and how do I install it?
Thanks!
CrossMap depends on pysam which is a wrapper for sam tools. You need to install htslib before compiling pysam.

tried to install a python package but encountered "cannot find -lgcc_s" error

Hi I was trying to install a python package called 'pysptk' under the Ubuntu 16.04, but when I use:
pip install pysptk
I have encountered the following error.
/usr/bin/ld: cannot find -lgcc_s
collect2: error: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
However, I already have gcc 4.8.5 installed as 'gcc -v' produces an output. My python version is 3.6.1 and the environment is Anaconda. I have googled the bug but reinstalling gcc and python3-dev does not work.
The code
easy_install pysptk
will give the following output.
Searching for pysptk
Reading https://pypi.python.org/simple/pysptk/
Downloading https://pypi.python.org/packages/3d/86/5520242ab99426d8d9b2f18a86ed73f1be848b9fb14e57b2b81b8f17a1bb/pysptk-0.1.8.tar.gz#md5=d34133d2eaccba83f634310602721657
Best match: pysptk 0.1.8
Processing pysptk-0.1.8.tar.gz
Writing /tmp/easy_install-0xk7me9z/pysptk-0.1.8/setup.cfg
Running pysptk-0.1.8/setup.py -q bdist_egg --dist-dir /tmp/easy_install-0xk7me9z/pysptk-0.1.8/egg-dist-tmp-wm2zkn7r
fatal: Not a git repository (or any of the parent directories): .git
-- Building version 0.1.8
In file included from /home/luke/anaconda3/lib/python3.6/site-
packages/numpy/core/include/numpy/ndarraytypes.h:1809:0,
from /home/luke/anaconda3/lib/python3.6/site-
packages/numpy/core/include/numpy/ndarrayobject.h:18,
from /home/luke/anaconda3/lib/python3.6/site-
packages/numpy/core/include/numpy/arrayobject.h:4,
from pysptk/_sptk.c:436:
/home/luke/anaconda3/lib/python3.6/site-
packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning:
#warning "Using deprecated NumPy API, disable it by " "#defining
NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by " \
^
/usr/bin/ld: cannot find -lgcc_s
collect2: error: ld returned 1 exit status
error: Setup script exited with error: command 'gcc' failed with exit status 1
Does anyone know what the problem is? I really appreciate your help! If there is any missing information. Please let me know. Thanks very much.
First, I don't know if you should use pip to install packages on Anaconda. Use conda install instead to install packages. Likely what's happening is that pip tries to install packages on a different python on your computer, but that Python does not have 'gcc' installed. I run into this issue before when I installed Python from source with the gcc command. Try pip -V to see which Python the pip command is callinng.
Another thing I noticed is that you said your Python is Python3.6.1, but you did not use pip3 command. I suggest you try to do either conda install pysptk or pip3 install pysptk.

Error during installing PyOpenCl on Mac OS X

I follow the installation instructions on http://wiki.tiker.net/PyOpenCL/Installation/Mac . But it falls during
make
The error message is shown below:
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't figure out the architecture type of: /var/folders/8f/l7p674mx2j130p08plnd9k1r0000gn/T//ccG1RrCB.out
error: command 'gcc-4.2' failed with exit status 1
make: *** [all] Error 1
What I can do to install PyOpenCL successfully?
Have you installed Mako before pyopencl? For some reason that's what works with my macs.
Also, you may not have installed the Xcode Command line tools; try (in the terminal):
xcode-select --install

clang error when installing MYSQL-python on Lion-mountain (Mac OS X 10.8)

When I try installing mysql-python using below command,
macbook-user$ sudo pip install MYSQL-python
I get these messages:
/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pyconfig.h:891:1: warning: this is the location of the previous definition
/usr/bin/lipo: /tmp/_mysql-LtlmLe.o and /tmp/_mysql-thwkfu.o have the same architectures (i386) and can't be in the same fat output file
clang: error: lipo command failed with exit code 1 (use -v to see invocation)
error: command 'clang' failed with exit status 1
Does anyone know how to solve this problem? Help me please!
At first glance it looks like damaged pip package. Have you tried easy_install instead with the same package?

Categories

Resources