I installed python 3.5 for my windows 8.1 computer. I need to install scapy for this version (I deleted all the files of the last one). How do i download and install it? can't find anything that help me to do that no matter how i searched.
use
pip3 install scapy-python3
and you will get it
Scapy supports Python 3.3 to 3.6 (and 2.7) but, so far, no release has been made. For now, you have to get the current development version from https://github.com/secdev/scapy and install it.
Update: you can now install a 2.4.0 release candidate using pip3 install --pre scapy (--pre means you accept non-stable release).
Update: Scapy 2.4.0 has been released. You can now use pip3 install scapy!
Use pip from the command line:
pip install scrapy
Apologies, realised that according to the docs scrapy is not supported on Windows with Python 3.x due to missing dependency (Twisted)
Source: http://doc.scrapy.org/en/latest/intro/install.html
Related
for python 3.7.4 the myqli client library is supported which is given below
mysqlclient-1.4.4-cp37-cp37m-win32.whl
but i have python 3.7.6 which mysql-client wheel is supported
Any Help would be appreciated
It's always a good idea to use a package manager handle versioning instead of doing it manually. If you do that, then you can just ask the package manager what version it installed. For example, for your python 3.7.6 (and on Windows... slightly different on linux):
python -m venv my_env
my_env\Scripts\activate.bat
python -m pip install --upgrade pip
pip install mysqlclient
pip list
That last pip list will return the list of libraries you have in that environment, and what version each one has.
This one will work for all python 3.7.x versions if you want version 1.4.4 of the package.
However there is newer version - 1.4.6 and you should use it, unless there is reason to stick to 1.4.4
Alternatively you may look at mysql-connector-python
The docs: https://dev.mysql.com/doc/connector-python/en/
I am on Windows 10 64-bit, in a venv.
Pip install lxml return
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
So I tried to use the appropriate .whl availlable here (lxml-4.5.0-cp38-cp38-win_amd64.whl) which leads to another error:
lxml-4.5.0-cp38-cp38-win_amd64.whl is not a supported wheel on this platform.
I tried to use pip.exe, pip3.exe, pip3.8.exe and the 64x and 32x bit versions of the .whl file without success
Am I missing something or is the Python 3.8 version of the package not compatible with Python 3.8.1?
This happens because you probably have an older version of python alongside 3.8 and when you install the package it references the older one. You can try deleting all python versions and installing Python 3.8 again
I used deactivate to get out of venv mode, then it worked.
Use "pip3 install lxml" and you will get it installed. Make sure you have updated pip3 version. You can install it by "easy_install -U pip3". Let me know in case of issues.
I'm trying to install the avro package for confluent-kafka with python3 on macOs Sierra.
Installing the confluent-kafka package works fine, no issues. The problem is when I try to install the avro package:
pip install confluent-kafka[avro]
I just get an error message from the bash, saying:
no matches found: confluent-kafka[avro]
How can I install this package? Anyone else that have managed to do it on mac?
Assuming you are not using bash (in my case it was zsh), the [] might mess with your shell. The following should solve this:
pip install "confluent-kafka[avro]"
For me this worked with the default install from pypi, no need for the github URL.
Try installing directly from github
pip install git+git://github.com/confluentinc/confluent-kafka-python.git
Solved! In my case it was python version
I was using python 3.10.1 version
Uninstall python 3.10.1 and python Launcher from add or remove programs
Download python 3.7.0 for x64 bit using this link or download from here Link
Now you can: pip install confluent-kafka[avro]
I have installed 3.6.1 version of python interpreter. I have a project that need to use "PIL" library so I try to install it but it gives me error, "Error occurred when installing package 'PIL'". I search it out why it's happening and I think it can only be installed on lower version of interpreter 2.7 or something lower. Now how can I install PIL in 3.6.1 version of interpreter? Should I downgrade my interpreter instead? But if I do, can it cause some other packages to be unable to install for it is only for 3.X version. Thanks in advance.
Install Pillow, the packaged and maintained fork of PIL, using:
pip install pillow
download pillow based on your version. from python unofficial library ..
search pillow choose your python version and distribution from it... once you download,
move onto download path or
pip install ~/Downloads/Pillow‑4.2.1‑cp36‑cp36m‑win_amd64.whl
I have some spreadsheet reading code (using openpyxl) that works correctly on my Windows installation. On my Ubuntu Rackspace server, however, it fails with a named range error.
I notice that the openpyxl package on Ubuntu (which I installed last week using apt-get) is several years old (1.5.6). I'd like to install the newest version (1.6.2).
What tool can I use to install the newer version, or is it something I need to do manually?
The Python packages available in the Ubuntu repositories generally don't get updated within an Ubuntu version, only when you upgrade to a newer Ubuntu release.
When you need newer versions of a Python package, you can use pip to get the newest version from the Python Package Index:
sudo pip install openpyxl
Stuck on the same problem, this is what I did to fix it.
On linux machines you need to install via apt package manager:
sudo apt-get install python-openpyxl python3-openpyxl