Skip to content
Advertisement

Tag: pip

Git – Should Pipfile.lock be committed to version control?

When two developers are working on a project with different operating systems, the Pipfile.lock is different (especially the part inside host-environment-markers). For PHP, most people recommend to commit composer.lock file. Do we have to do the same for Python? Answer Short – Yes! The lock file tells pipenv exactly which version of each dependency needs to be installed. You will

Run Makefile on pip install

I have some protocol buffer definitions which need to be built to Python source as part of the pip install process. I’ve subclassed the setuptools.command.install command in setup.py but I think it’s trying to run the Makefile after the package is installed so the sources aren’t recognised. I can’t find information about what happens during a pip installation. Can anyone

Python 3.6 Module cannot be found: Folium

I am trying to import folium into a Jupyter notebook I’m working on and I cannot seem to solve the import issues with the Folium library. Has anyone else solved this problem? Output from the above yields: Answer From the source: Choose the sandbox folder of your choice (~/sandbox for example) Clone folium from github: Run the installation script

after pip successful installed: ModuleNotFoundError

I am trying to install the SimPy module so that I can use it in IDLE. However, everytime I try to import in IDLE, I got an error. I already tried reinstalling Python and Pip and tried to modify the location of the apps. SimPy can be found in the directory of Python 2.7. I’m using python 3.6.1. After I

pip with embedded python

I installed embedded python from here, titled “Windows x86-64 embeddable zip file”, but it does not have pip installed, it does not have site-packages either, when I try to do python get-pip.py it failed to run because this file has import pip in it. So how can I install pip within a embedded python environment. Traceback (most recent call last):

Visual C++ for python failed with exit status 2 when installing divisi2

I am using Python 2.7 on Windows 8.1 46 bit. I want to install divisi2 I have installed NumPy and SciPy which are the pre-requisites for divisi2 already. I have installed Visual C++ for python 9.0. Whenever I issue the pip install divisi2 command I get the following error in the console. Answer I finally solved this problem after getting

Using setuptools, how can I download external data upon installation?

I’d like to create some ridiculously-easy-to-use pip packages for loading common machine-learning datasets in Python. (Yes, some stuff already exists, but I want it to be even simpler.) What I’d like to achieve is this: User runs pip install dataset pip downloads the dataset, say via wget http://mydata.com/data.tar.gz. Note that the data does not reside in the python package itself,

pip installs packages successfully, but executables not found from command line

I am working on mac OS X Yosemite, version 10.10.3. I installed python2.7 and pip using macport as done in http://johnlaudun.org/20150512-installing-and-setting-pip-with-macports/ I can successfully install packages and import them inside my python environment and python scripts. However any executable associated with a package that can be called from the command line in the terminal are not found. Does anyone know

Advertisement