pip

PyCharm to use virtualenv and dependencies created by PyCharm

99封情书 提交于 2021-02-05 10:50:08
问题 I have created a virtualenv using command prompt and have installed all my dependencies. How can I make PyCharm use the virtual env & dependencies created via command prompt? 回答1: You should link the virtualenv in PyCharm. In order to do this, go to: File -> Settings -> Project -> Project Interpreter Here, in the top right corner of the window, click on the gear icon and choose Add . Then, choose Existing environment option and navigate in your computer until you find the python.exe for your

ERROR: Could not build wheels for glpk which use PEP 517 and cannot be installed directly

风流意气都作罢 提交于 2021-02-05 10:44:08
问题 I'm trying to install glpk using pip on a virtual enviroment but it keeps giving this error regarding the wheels for pip installing "ERROR: Could not build wheels for glpk which use PEP 517 and cannot be installed directly": $ pip install glpk Collecting glpk Using cached glpk-0.4.5.tar.gz (152 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... done Building wheels for collected packages: glpk Building wheel for glpk (PEP 517)

Python and pip versions are different and potentially causing problem

≯℡__Kan透↙ 提交于 2021-02-05 09:28:56
问题 I have both 3.6 and 3.8 python versions installed in my drive and I am using Anaconda for virtual environment with Python 3.6. When I say in cmd prompt: >python -V Python 3.6.10 :: Anaconda, Inc. However when I look for pip versions it shows >pip3 -V pip 20.1.1 from c:\python38\lib\site-packages\pip (python 3.8) I'm thinking this the cause of the problem when I use pip install -e . while my virtual environment is active: ERROR: Could not find a version that satisfies the requirement torch==1

How to install OpenCV 2.4 if it is no longer supported?

二次信任 提交于 2021-02-05 08:35:20
问题 I am trying to run this code here https://github.com/feichtenhofer/gpu_flow/ which requires me to first install OpenCV 2.4. But I get the error below when trying to do so and I read that this means the version is no longer supported. So how can I install OpenCV version 2.4? user:~$ pip install opencv-python==2.4 WARNING: Keyring is skipped due to an exception: Failed to unlock the collection! WARNING: Keyring is skipped due to an exception: Failed to unlock the collection! ERROR: Could not

python3 install of Tensorflow on Apple silicon M1

ぃ、小莉子 提交于 2021-02-05 08:00:06
问题 I have macOS Big Sur on a Apple Silicon M1 and I'm unable to install Tensorflow in python3. I removed xcode python3 and installed brew arm64 python3 (x86 python3 doesn't work as well) I checked successful 64 bis version python3 -c "import sys; print(sys.version)" or python -c "import struct; print(struct.calcsize('P')*8)" 3.8.7 (default, Dec 30 2020, 02:09:32) [Clang 12.0.0 (clang-1200.0.32.28)] Can this work anyhow, or who knows, how to make this work ? 回答1: Apple M1 is a processor with an

conda install -n base --revision 1 doesn't clean up pypi packages

别来无恙 提交于 2021-02-05 07:16:39
问题 I attempted cleaning up my base (mini)conda environment by installing revision 1 of the base environment. $ conda install -n base --revision 1 For reference, here is what revision 1 means in my case. $ conda list -n base --revisions 2019-10-24 14:29:57 (rev 0) +asn1crypto-1.2.0 +ca-certificates-2019.10.16 +certifi-2019.9.11 +cffi-1.13.0 +chardet-3.0.4 +conda-4.7.12 +conda-package-handling-1.6.0 +cryptography-2.8 +idna-2.8 +libcxx-4.0.1 +libcxxabi-4.0.1 +libedit-3.1.20181209 +libffi-3.2.1

Getting “encoding' is an invalid keyword argument for this function” On Installing pyautogui via PIP

本小妞迷上赌 提交于 2021-02-05 07:16:26
问题 I'm getting this error when I'm trying to install "pyautogui" library to python. Please find the details below - ERROR: Complete output from command python setup.py egg_info: ERROR: Traceback (most recent call last): File "<string>", line 1, in <module> File "################\pip-install-pmckiy\pygetwindow\setup.py", line 10, in <module> with open('README.md', 'r', encoding='utf-8') as fh: TypeError: 'encoding' is an invalid keyword argument for this function ---------------------------------

Getting “encoding' is an invalid keyword argument for this function” On Installing pyautogui via PIP

蹲街弑〆低调 提交于 2021-02-05 07:16:15
问题 I'm getting this error when I'm trying to install "pyautogui" library to python. Please find the details below - ERROR: Complete output from command python setup.py egg_info: ERROR: Traceback (most recent call last): File "<string>", line 1, in <module> File "################\pip-install-pmckiy\pygetwindow\setup.py", line 10, in <module> with open('README.md', 'r', encoding='utf-8') as fh: TypeError: 'encoding' is an invalid keyword argument for this function ---------------------------------

Use webengine video and audio codecs

穿精又带淫゛_ 提交于 2021-02-05 06:46:33
问题 For my PyQt5 project, I am using the QWebEngineView , but certain videos, such as .mp4 videos won't play. Can I install the codecs with pip , or pass a certain argument through QApplication() or something similar in order to fix this problem? I installed PyQt5 through pip , so I don't have the C:\Qt\... files, only the PyQt5 , pyqt5_tools folders in Appdata\Local\Programs\Python\Python37\Lib\site-packages . I am using Python 3.7.2 , and PyQt5.11 回答1: The pyqtwebengine provided by pypi does

Can't pip microsoft azure-cognitiveservices-speech?

雨燕双飞 提交于 2021-02-05 05:31:11
问题 Following the guide here to install the microsoft azure text to speech SDK: https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/quickstart-python#install-the-speech-sdk It says to run pip install azure-cognitiveservices-speech , but unfortunately this returns Could not find a version that satisfies the requirement azure->cognitiveservices-speech (from versions: ) No matching distribution found for >azure-cognitiveservices-speech I've tried adding the version # at the end