twisted for python 3.5 on ubuntu - python-3.x

I tried installing django channels on my virtual environment. But it has failed. And it gives the following error 'failed building wheel for twisted'.
What is this about.? And how can i handle this issue?
I have python 3.5 on my virtualenv, and my OS in Ubuntu.

In order to install django-channel, do these thee step:
sudo apt-get install python3-dev python-pip libxml2-dev libxslt1-dev zlib1g-dev libffi-dev libssl-dev
pip install --verbose twisted
pip install -U Channels

Related

how to fix error during installation of PyUpdater

This is the error caused by trying to install PyUpdater.with the pip install --upgrade PyUpdater command on Windows 10
For Python 3.x use:
sudo apt-get install python3-dev

M2Crypto python3 installation error on Ubuntu 19.04

I am not knowing how to download and install M2Crypto on Ubuntu 19.04 for Python3.
I have Python 3.7.3 installed on my Ubuntu 19.04, I tried the following in order:
1- sudo apt-get install swig (worked fine)
2- brew install openssl (worked fine)
3- pip3 install m2crypto (gave the following error [shown in image])
Please help me fix it, how can I install M2Crypto on Ubuntu for Python3?
Thank you in advance.
https://imgur.com/q8gJ8wH
My Ubuntu-18.04 does not have python3-m2crytpo, which is a shame. It only has python-m2crypto which does not work for python3 (sorry mcepl). I suppose Ubuntu 19.04 has the same issue.
For me this works fine to get the package installed:
apt-get install build-essential libssl-dev swig python3-dev
pip3 install M2Crypto
(I had a peek at pip3 download M2Crypto; tar xvf M2Crypto*tar*; less M2Crypto*/INSTALL.rst to get these dependencies straight.)
you don't have installed openssl-dev package (you don't have to use brew, it is in apt-get)
why not apt-get install python-m2crypto ?

Installing libxml2 and libxslt in python 3.6

I am having some problems installing lxml 3.6.4 in python 3.6 64bit using Pycharm and PIP.
pip install lxml==3.6.4
ERROR: b"'xslt-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"
** make sure the development packages of libxml2 and libxslt are installed **
When installing libxml
pip install libxml2-dev
I get the following error:
Collecting libxml2-dev
Could not find a version that satisfies the requirement libxml2-dev (from versions: )
No matching distribution found for libxml2-dev
When running libxslt
pip install libxslt
I get this error
Collecting libxslt
Could not find a version that satisfies the requirement libxslt (from versions: )
No matching distribution found for libxslt
The ultimate goal is to install pyiso on Pycharm.
My specs - Windows 7 - 64
Python 3.6
On Linux, with the typo corrected, #pguardiario's comment above fixed this for me.
sudo apt-get install libxml2-dev libxslt-dev
Then:
conda install lxml
Or:
pip install lxml

Install Shapely in Python 3

I cant install the shapely module in my anaconda prompt.
pip install --upgrade setuptools
pip install shapely
Command "python setup.py egg_info" failed with error code 1 in C:\Users\renau\AppData\Local\Temp\pip-install-27xf59zz\shapely\
Any solutions?
If you are using Anaconda, then it would probably be best to use:
conda install shapely
i guess you are using Windows ?
if so, you can't install shapely directly via pip
here's the steps:
go to this site and download desired version of shapely
run this script
pip install Shapely‑1.6.4.post1‑cp36‑cp36m‑win_amd64.whl
here i'm going to install Shapely version 1.6.4 for python 3.6 running in Windows 64bit
sudo apt-get install python-shapely
on Python 3
sudo apt-get install python3-shapely

Opencv3 is not installed for python3

I am using pyenv for python3.4 and want to install opencv3.
$ brew install opencv3 --HEAD --with-python3 --with-ffmpeg --with-tbb --with-contrib --with-opengl --with-qt5
but in /usr/local/Cellar/opencv3/HEAD-8e8da3f/lib/ there is no python3.4
it only have python2.7.
i don't know what is the problem.
Install anaconda and run the collowing command:
conda install -c menpo opencv3

Resources