Python package BeautifulSoup installation error - python

professional...
BeautifulSoup install error...ㅠㅠ
my windows environment is 64bit..and python also 64bit, 3.8.2version
help me
Collecting BeautifulSoup
Using cached BeautifulSoup-3.2.2.tar.gz (32 kB)
ERROR: Command errored out with exit status 1:
command: 'C:\Users\hoyou\AppData\Local\Programs\Python\Python38\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\hoyou\\AppData\\Local\\Temp\\pycharm-packaging\\BeautifulSoup\\setup.py'"'"'; __file__='"'"'C:\\Users\\hoyou\\AppData\\Local\\Temp\\pycharm-packaging\\BeautifulSoup\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Public\Documents\ESTsoft\CreatorTemp\pip-pip-egg-info-j79vzovk'
cwd: C:\Users\hoyou\AppData\Local\Temp\pycharm-packaging\BeautifulSoup\
Complete output (6 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\hoyou\AppData\Local\Temp\pycharm-packaging\BeautifulSoup\setup.py", line 3
"You're trying to run a very old release of Beautiful Soup under Python 3. This will not work."<>"Please use Beautiful Soup 4, available through the pip package 'beautifulsoup4'."
^
SyntaxError: invalid syntax
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

You should consider Anaconda if you're running on Windows: https://docs.anaconda.com/anaconda/install/windows/.
Beautifulsoup package: https://anaconda.org/anaconda/beautifulsoup4
The package management is much easier than just using the "vanilla" python.

Related

How to install djangorestframework-gis-distance

I am on Ubuntu and I tried to install djangorestframework-gis-distance
I followed the instructions and installed the dependencies which installed fine.
But when I install djangorestframework-gis-distance it gives an error of
ERROR: Command errored out with exit status 1:
command: /home/aarush/git_fudo/food1_back/food1_back/env/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ntgn7sle/djangorestframework-gis-distance/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ntgn7sle/djangorestframework-gis-distance/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
cwd: /tmp/pip-install-ntgn7sle/djangorestframework-gis-distance/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-ntgn7sle/djangorestframework-gis-distance/setup.py", line 9, in <module>
from pip.req import parse_requirements
ModuleNotFoundError: No module named 'pip.req'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Which basically says I think that there is no file called pip.req.
Is there another way I can install djangorestframework-gis-distance?
Lets see: https://pypi.org/project/djangorestframework-gis-distance/ . Latest version 1.0.0 released Feb 7, 2016.
Requires Python 2.7 but not 3+. Django 1.7+ but most probably not Django 2+. The error message indicates setup.py uses forbidden API pip.req which was only available in pip < 19 (IIRC).
The bottom line: the package is abandoned and outdated. Forget about it.

How to fix ‘“ERROR: Command errored out with exit status 1:” when trying to install desktop Library using pip?

I am revisiting the python language and I am experiencing difficulty setting up my environment.
I am using - python 3.8.2 (packaged with the system) - robotframework-desktoplibrary 1.0.1 - pip 20.2.3
I encounter an error message when attempting to install desktop library via pip. I believe the error is caused by pip attempting to install in python 3.8 folders (without sufficient permissions) instead of the python 3 folder.
I encounter the following error message when attempting to install robotframework-desktoplibrary via pip:
Collecting robotframework-desktoplibrary
Using cached robotframework-desktoplibrary-1.0.1.zip (15.6 MB)
ERROR: Command errored out with exit status 1:
command: 'c:\users\shivendra.singh\appdata\local\programs\python\python38\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\shivendra.singh\\AppData\\Local\\Temp\\pip-install-kcqq2ihh\\robotframework-desktoplibrary\\setup.py'"'"'; __file__='"'"'C:\\Users\\shivendra.singh\\AppData\\Local\\Temp\\pip-install-kcqq2ihh\\robotframework-desktoplibrary\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\shivendra.singh\AppData\Local\Temp\pip-pip-egg-info-bisto_oa'
cwd: C:\Users\shivendra.singh\AppData\Local\Temp\pip-install-kcqq2ihh\robotframework-desktoplibrary\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\shivendra.singh\AppData\Local\Temp\pip-install-kcqq2ihh\robotframework-desktoplibrary\setup.py", line 4, in <module>
execfile(join(dirname(abspath(__file__)), 'target', 'src', 'SikuliLibrary', 'version.py'))
NameError: name 'execfile' is not defined
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
How to resolve this?

Syntax error during python module installation

I want install ClientForm this is python module but I get this error during installation, someone can help me ?
python -m pip install ClientForm
Collecting ClientForm
Using cached ClientForm-0.2.10.tar.gz (104 kB)
ERROR: Command errored out with exit status 1:
command: 'C:\Users\paulo\anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\paulo\\AppData\\Local\\Temp\\pip-install-tava6mrg\\clientform\\setup.py'"'"'; __file__='"'"'C:\\Users\\paulo\\AppData\\Local\\Temp\\pip-install-tava6mrg\\clientform\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\paulo\AppData\Local\Temp\pip-pip-egg-info-s3ag4apt'
cwd: C:\Users\paulo\AppData\Local\Temp\pip-install-tava6mrg\clientform\
Complete output (6 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\paulo\AppData\Local\Temp\pip-install-tava6mrg\clientform\setup.py", line 13
False, True = 0, 1
^
SyntaxError: cannot assign to False
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ClientForm was last released in 2008 on the same day as the first Python 3.0 release. It is considered abandoned by its author in favor of the mechanize package.
It is not compatible with the version of Python 3 you are trying to install it on.
Check out the mechanize package.

Error installing coco-0.4.0.tar.gz in Python: "Command errored out with exit status 1"

I am trying to install coco-0.4.0.tar.gz in python through pip install, but I'm getting this error:
ERROR: Command errored out with exit status 1:
command: 'C:\Users\brene\anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\brene\\AppData\\Local\\Temp\\pip-install-wbchu6pa\\coco\\setup.py'"'"'; __file__='"'"'C:\\Users\\brene\\AppData\\Local\\Temp\\pip-install-wbchu6pa\\coco\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\brene\AppData\Local\Temp\pip-install-wbchu6pa\coco\pip-egg-info'
cwd: C:\Users\brene\AppData\Local\Temp\pip-install-wbchu6pa\coco\
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\brene\AppData\Local\Temp\pip-install-wbchu6pa\coco\setup.py", line 9, in <module>
import coco
File "C:\Users\brene\AppData\Local\Temp\pip-install-wbchu6pa\coco\coco.py", line 18, in <module>
from docopt import docopt
ModuleNotFoundError: No module named 'docopt'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
coco 0.4.0, the last release was at Jan 5, 2013. The package announces compatibility with Python 2.6 and 2.7.
setup.py imports module coco (from the file coco.py) which imports docopt without installing it.
My resolution is: the package is buggy, old, outdated and abandoned. Not recommended for any use.
If you want to try it anyway — first install docopt:
pip install docopt

Can't install TTFQuery via pip install

I was trying to use TTFQuery module but when i write the command pip3 install TTFQuery it returns the following error.
ERROR: Command errored out with exit status 1:
command: 'c:\users\pranon rahman\appdata\local\programs\python\python37\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\PRANON~1\\AppData\\Local\\Temp\\pip-install-z2hpgfba\\TTFQuery\\setup.py'"'"'; __file__='"'"'C:\\Users\\PRANON~1\\AppData\\Local\\Temp\\pip-install-z2hpgfba\\TTFQuery\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);
code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\PRANON~1\AppData\Local\Temp\pip-pip-egg-info-2u2rs2sz'
cwd: C:\Users\PRANON~1\AppData\Local\Temp\pip-install-z2hpgfba\TTFQuery\
Complete output (6 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\PRANON~1\AppData\Local\Temp\pip-install-z2hpgfba\TTFQuery\setup.py", line 11
except ImportError, err:
^
SyntaxError: invalid syntax
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
TTFQuery 1.0.5, last released in 2012. The code is obviously only for Python 2.
There is a beta release 2.0.0b1 from 2018. Try
pip install TTFQuery==2.0.0b1

Categories

Resources