Category : pip

I’m on a fresh Ubuntu 20.4 install (or really, a reinstall, as I messed up some things and had to start over; everything except /home has been reformatted, so if there is an issue with remnants, it’s there), with python 3.8 included. However, I want to run python 3.11, since that’s the newest. I follow ..

Read more

When installing opencv-python on Mac using pip, the following error happens. /Users/zhaojun/Github/OpenCV_Demo/venv/bin/python /Users/zhaojun/Github/OpenCV_Demo/venv/com.ctrip.com/nowatermarkdemo.py Traceback (most recent call last): File "/Users/zhao’un/Github/OoenCV Demo/venv/com ctrio com/nowatermarkdemo ov", line 1, in <module> import cv2 as cv File "/Dsers/zhao"un/Github/DoenCV Demo/venv/lib/ovthon3 9/site-oacka es/cv2/ init.cv", line 5, in <module> from .cv2 import * ImportError: dlopen(/Users/zhaojun/Github/OpenCV_Demo/venv/lib/python3.9/site-packages/cv2/cv2.cpython-39-darwin.so, 2): Library not loaded: |/opt/homebrew/opt/ffmpeg/lib/libavcodec.58.dylib Referenced from: ..

Read more

I change python version of 8 to 9.9, then for module pyodbc have error, when I pip install pyodbc in terminal I did the error: ERROR: Command errored out with exit status 1: command: ‘C:Userss.soleymangoliAppDataLocalProgramsPythonPython310python.exe’ -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"’C:Userss.soleymangoliAppDataLocalTemppip-install-rnwie03kpyodbc_a278ded738704d599dee8d378c1ab664setup.py’"’"’; file=’"’"’C:Userss.soleymangoliAppDataLocalTemppip-install-rnwie03kpyodbc_a278ded738704d599dee8d378c1ab664setup.py’"’"’;f = getattr(tokenize, ‘"’"’open’"’"’, open)(file) if os.path.exists(file) else io.StringIO(‘"’"’from ..

Read more

Trying to use a CLI scraper that needs python 3.10 I installed python 3.10 and created the virtual environment using these commands: sudo apt update && sudo apt -y install python3.10 sudo apt -y install python3.10-dev python3.10-venv python3.10 -m venv venv source venv/bin/activate But then when I try to install the requirements pip3 install –update ..

Read more

i encountered errors with trying to upgrade pip, and its setup tools. Appended below are the errors. pip install -upgrade pip failing pip install –upgrade pip Collecting pip Using cached https://files.pythonhosted.org/packages/da/f6/c83229dcc3635cdeb51874184241a9508ada15d8baa337a41093fab58011/pip-21.3.1.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-build-9msN4R/pip/setup.py", line 7 def read(rel_path: ..

Read more

How do I install pip so that I can still use pip.exe when moving embedded python folder. Download embeddedable python https://www.python.org/ftp/python/3.8.10/python-3.8.10-embed-amd64.zip modefiy the python38._pth file: python38.zip Libsite-packages . # Uncomment to run site.main() automatically #import site install pip and check the pip version .python.exe .get-pip.py Looking in indexes: https://mirrors.aliyun.com/pypi/simple/ Collecting pip Using cached https://mirrors.aliyun.com/pypi/packages/a4/6d/6463d49a933f547439d6b5b98b46af8742cc03ae83543e4d7688c2420f8b/pip-21.3.1-py3-none-any.whl (1.7 ..

Read more

I’m trying to upload my code to PyPI, but when i try to create the source distribution I get the following error: error: package directory ‘rmn’ does not exist The directory and the setup.py are below Directory from setuptools import setup setup( name=’rmn’, version=’1.0.0′, author=’Guilherme Campos, Tiago Moraes’, author_email=’[email protected]’, packages=[‘rmn’] ) Source: Python..

Read more