Problems installing gx_freeze - python

I have Ubuntu 14.04 LTS with Python 2.7.6, and I want to install cx_Freeze. I used the command:
pip install cx_Freeze
and I got the error:
fatal error: Python.h: No such file or directory compilation terminated.
so I did:
sudo apt-get install python-dev
but now I'm getting:
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_emanuele/cx-Freeze/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-Hd6_EY-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_emanuele/cx-Freeze
Storing debug log for failure in /home/emanuele/.pip/pip.log
what does it mean this error and how can I fix it?

Related

Error while installing notebook using pip

note: I am on linux(ubuntu,mint)
I am trying to install jupyter. But after some searching I realised that the error I have when trying to install jupyter is due to notebook.
So here is the error I have when trying to install notebook using sudo pip install notebook.
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-EKmj0F/scandir/setup.py';
f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();
exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-OB5xPr-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-EKmj0F/scandir/
If you want here is the whole output of pip install notebook.
Thank for answers in advance.
This is the relevant part of the error message:
_scandir.c:14:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
You need the Python headers:
sudo apt-get install python-dev
Your installation process tries to compile an extension with gcc and you seem to be missing the necessary decencies.

How to install MySQL-python - CentOS

I have already installed mysql-devel, it didn't solve the problem.
I am trying to executed the following commands:
sudo easy_install-2.7 MySQL-python
sudo pip2.7 install MySQL-python
in the first one I see:
error: Setup script exited with error: command 'gcc' failed with exit
status 1
In the second one:
Command "/usr/local/bin/python2.7 -u -c "import setuptools,
tokenize;file='/tmp/pip-build-nySVuQ/MySQL-python/setup.py';f=getattr(tokenize,
'open', open)(file);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, file, 'exec'))" install
--record /tmp/pip-eC4DGP-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-nySVuQ/MySQL-python/
Is there any possibility to solve it?
Thanks in advance,

error: command 'clang' failed with exit status 1 on pip install TA-Lib

I'm trying to instal TA-Lib in Mac Sierra with:
sudo pip install TA-Lib
But I'm getting this error:
error: command 'clang' failed with exit status 1
----------------------------------------
Command "/usr/local/opt/python/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-bqV3xq/TA-Lib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-5HBbJo-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-bqV3xq/TA-Lib/
How can I fix this?
Installation instructions from their github readme indicate that on macos you need the following:
brew install ta-lib

MAC pip install kulka error: command 'gcc' failed with exit status 1

I have been trying to install pip install kulka for a long time now. I keep running into this same issue. I have tried uninstalling and reinstalling. I have also tried just about everything I can find on other threads.
Another thread told me to try doing brew install cmake and that also failed.
WL-198-2:anaconda aschantz$ brew install cmake
Updating Homebrew...
xcodebuild: error: SDK "/path/to/Mac10.11SDK" cannot be located.
git: error: unable to find utility "git", not a developer tool or in PATH
Error: Failure while executing: git config --local --replace-all homebrew.private true
I'll be super grateful for any help!!
//System/Library/Frameworks/Foundation.framework/Headers/NSXPCConnection.h:185:1: error: unknown type name ‘nullable’
- (nullable NSXPCInterface *)interfaceForSelector:(SEL)sel argumentIndex:(NSUInteger)arg ofReply:(BOOL)ofReply;
^
//System/Library/Frameworks/Foundation.framework/Headers/NSXPCConnection.h:185:13: error: expected ‘)’ before ‘NSXPCInterface’
- (nullable NSXPCInterface *)interfaceForSelector:(SEL)sel argumentIndex:(NSUInteger)arg ofReply:(BOOL)ofReply;
^
error: command 'gcc' failed with exit status 1
Command "//anaconda/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/j9/_j_fqs0x1hs_jy0bsmkx4jz00000gn/T/pip-build-jsu4tnbk/pyobjc-framework-Cocoa/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/j9/_j_fqs0x1hs_jy0bsmkx4jz00000gn/T/pip-snryv41w-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/j9/_j_fqs0x1hs_jy0bsmkx4jz00000gn/T/pip-build-jsu4tnbk/pyobjc-framework-Cocoa/

Can't pip install anything requiring C compilation on OSX 10.10 with homebrew python

When I try to pip install things that involve C compilation (Pillow, specifically) I get an odd error:
clang: error: no such file or directory: 'Python.framework/Versions/2.7/Python'
error: command 'clang' failed with exit status 1
----------------------------------------
Cleaning up...
Command /usr/local/opt/python/bin/python2.7 -c "import setuptools, tokenize;__file__='/private/var/folders/xt/f2d8vp4j65j2rt71pns6trjw0000gn/T/pip_build_jakob/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/xt/f2d8vp4j65j2rt71pns6trjw0000gn/T/pip-LnL0hW-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/var/folders/xt/f2d8vp4j65j2rt71pns6trjw0000gn/T/pip_build_jakob/Pillow
I posted my pip.log for this installation.
I think this problem is due to a combination of OSX 10.10 Yosemite and Homebrew python. Have you experienced this before? ideas on how to fix it?
You need to install XCode in order to be be able to compile on OS X.

Categories

Resources