pip

How to handle multiple major versions of dependency

余生长醉 提交于 2021-02-08 08:15:24
问题 I'm wondering how to handle multiple major versions of a dependency library. I have an open source library, Foo , at an early release stage. The library is a wrapper around another open source library, Bar . Bar has just launched a new major version. Foo currently only supports the previous version. As I'm guessing that a lot of people will be very slow to convert from the previous major version of Bar to the new major version, I'm reluctant to switch to the new version myself. How is this

pip install upgrade fail to upgrade private dependency

天涯浪子 提交于 2021-02-08 07:42:37
问题 background: pip support ssh link suffix with branch name, a commit hash, a tag name a git ref However, pip has a problem in upgrade some package depends on these ssh links. in a setup.py of a package called CurrentPackage that is version 5.1.2 install_requires=[ "MyOwnPackage @ git+ssh://git@github.com/myusename/MyOwnPackage@master", ], i then pip install --upgrade -e . Requirement already satisfied, skipping upgrade: MyOwnPackage@git+ssh://git@github.com/myusename/MyOwnPackage@master from

multipledispatch ModuleNotFoundError running from command-line

一世执手 提交于 2021-02-08 06:40:14
问题 Running a locust (locust.io) script from the command line. locust calls main.py which has the following imports: from locust import HttpUser, between, task from StreamLoader.stream_generator import * # thought this brings in everything Packer.py has these imports: from multipledispatch import dispatch from PackedItem import PackedItem StreamGenerator.py has: import hashlib from StreamLoader.Packer import Packer from aes_encryption import AesEncryption I used pip to install multipledispatch

Installing and importing multiple versions of a Python package

假如想象 提交于 2021-02-08 05:17:43
问题 I am using Dataiku DSS v6.0 which uses pandas==0.23 and this cannot be manually upgraded. I am also trying to use modin==0.6 , which is only compatible with pandas==0.25 . I have tried using modin==0.3 which requires pandas==0.23 , but this older version is throwing exceptions with some of the pandas methods I am calling. Is there any workaround to this? Can I somehow force modin==0.6 to accept pandas==0.23 ? Otherwise is there a way in which I can install both pandas==0.23 and pandas==0.25

pip installed google.colab and now unable to run code on Jupyter notebook

被刻印的时光 ゝ 提交于 2021-02-08 04:41:06
问题 I installed google.colab using pip install google.colab in my terminal, after doing this the jupyter notebook that I was working on stopped working. When I opened a new jupyter notebook, I could not run any code. When I tried to run any code it stayed stuck on In[*] . Before installing google.colab my notebooks were working fine. I tried restarting my kernel but that did not work. I also used pip uninstall google.colab but that gives the following: WARNING: Skipping google.colab as it is not

Issue with installing geopandas

旧巷老猫 提交于 2021-02-08 02:12:37
问题 I'm trying to install geopandas on my laptop, a Windows 10 version 1709 machine. After executing the pip install geopandas command, I'm getting the message: command python setup.py egg_info failed with error code 1. I already tried to upgrade pip and setuptools, but still no success. I installed Python 3.6. 回答1: Assuming you got something like this error: File "C:\Users\Simon\Anaconda3\lib\site-packages\setuptools\msvc.py", line 848, in __init__ raise distutils.errors.DistutilsPlatformError

Microsoft Visual C++ 10.0 required to install Python package in virtualenv

℡╲_俬逩灬. 提交于 2021-02-08 02:06:13
问题 I was trying to install the bokeh Python package via pip but I was thrown this error: error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat). I fixed that error by installing Microsoft Visual C+ and installed successfully after that. However, now I want to install bokeh inside my virtual environment which I created with virtualenv. My intent is to build a Flask app. I got the same error again, but this time I have no idea what to do. Any help would be greatly appreciated.

unable pip install mysqlclient & execute 'gcc': Permission denied

喜夏-厌秋 提交于 2021-02-07 20:46:38
问题 Forgive me if I ask something really simple I am setting up a Django app on a remote server, by Namecheap (no root access) and my server information: Apache Version: 2.4.38 MySQL Version: 10.1.38-MariaDB-cll-lve Architecture: x86_64 Operating System: linux Python: 3.7 Django: 2.1.7 Now I'm trying to had mysql DB connect to my django app. But when I try installing connector mysqlclient with pip install mysqlclient I had this error: $ pip install mysqlclient Collecting mysqlclient Using cached

Unable to import opencv in Jupyter notebook but able to import in command line on Anaconda

爷,独闯天下 提交于 2021-02-07 20:43:04
问题 I created a new environment in anaconda for python 3.5 and installed all the required pip libraries including opencv. If I execute the following in command line $ python Python 3.5.2 |Continuum Analytics, Inc.| (default, Jul 2 2016, 17:52:12) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import cv2 >>> As you can see above there is no issues importing cv2. However when I open Jupyter notebook and

Unable to import opencv in Jupyter notebook but able to import in command line on Anaconda

北城余情 提交于 2021-02-07 20:43:01
问题 I created a new environment in anaconda for python 3.5 and installed all the required pip libraries including opencv. If I execute the following in command line $ python Python 3.5.2 |Continuum Analytics, Inc.| (default, Jul 2 2016, 17:52:12) [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import cv2 >>> As you can see above there is no issues importing cv2. However when I open Jupyter notebook and