pipenv

How to fix 'Missing required dependencies ['numpy']' when running packaged app made with PyInstaller?

会有一股神秘感。 提交于 2019-12-11 04:14:06
问题 When I run my packaged app I get the error ImportError: Missing required dependencies ['numpy'] . How do I fix this? The full error: I used pyinstaller guiMain.py to create the .exe, within a virtual environment created with pipenv shell . This virtual environment has numpy 1.16.0 installed, aswell as pandas , pyinstaller , sklearn , googleads and pytest . When I run the code (unpackaged and within the virtual environment) everything works fine. The packaging process goes fine aswell, until I

How should Jupyter extensions be installed and enabled for being reproducible?

谁说胖子不能爱 提交于 2019-12-10 15:42:45
问题 I'd like to make interactive slide set (for a presentation with some live coding in python) with RISE a.k.a. live_reveal, which is a notebook extension for Jupyter. I'd like the slide set to be usable by others (and by my future self) without too many manual steps (and without relying on hosted Jupyter solutions), thus I've chosen pipenv to manage dependencies. I can get started with pipenv install RISE pipenv run jupyter nbextension install rise --py --sys-prefix pipenv run jupyter

How can I see the current version of packages installed by pipenv?

独自空忆成欢 提交于 2019-12-10 12:59:59
问题 I'm managing my Python dependencies with pipenv. How can see the currently installed versions of packages? I could examine Pipfile.lock , but is there a simpler way from the command line? 回答1: 1.go in project folder. 2.first activate pipenv type pipenv shell . 3.type pip freeze 回答2: To see installed packages with Pipenv, you can use the pipenv graph command. The output from this is perhaps more verbose than you'd like, but it does contain everything you need. Sample truncated output: appdirs=

Pipenv global environment

↘锁芯ラ 提交于 2019-12-10 10:06:58
问题 Pipenv is a good tool for managing python environments. But some things need to be global. For instance most command line tools should be always available and jupyter for use with non python kernels. Can pipenv be used to manage such a global python environment as well? If so, how? Is this a sane thing to do? 回答1: Installing from Pipenv without a virtual environment I had a similar problem to you - I needed to install dependencies globally on our production server. I came across this

Set python version when creating virtualenv using pipenv

六眼飞鱼酱① 提交于 2019-12-10 02:33:48
问题 Using a Raspberry Pi using Debian 4.14.34-v7+, I am trying to get pipenv set up with Python 3.6.5 as the default version of Python. I first install Python 3.6 by compiling it on the Pi (hours...). After making a 'robot' directory, I then install pipenv with "$ sudo pip3 install pipenv" and "$pipenv install --three". Then I start the shell and open up Python, getting Python 3.5.3: pi@raspberrypi:~/robot $ pipenv shell Spawning environment shell (/bin/bash). Use 'exit' to leave. . /home/pi/

pipenv install gives “pew is not in your PATH”

大憨熊 提交于 2019-12-09 15:12:07
问题 I have Mac OS X El Capitan, installed python 3.6, pip, pipenv. Can't make pipenv work: pipenv install Creating a virtualenv for this project… Warning: it looks like pew is not in your PATH. We cannot continue until this is resolved. I checked pew - it's in the /Users/kosteg/Library/Python/3.6/bin Here is my ~/.bash_profile: export PATH=/usr/local/bin:/usr/local/sbin:$PATH export PATH=/Users/kosteg/.local/bin:$PATH export PATH=/Users/kosteg/Library/Python/3.6/bin:$PATH export PATH=/Users

installation of pipenv causes pip3 unusable

 ̄綄美尐妖づ 提交于 2019-12-07 11:45:39
问题 I installed pipenv using $ pip3 install pipenv which gives me the error ImportError: cannot import name 'main' in order to solve this error I followed these instruction sudo python3 -m pip uninstall pip && sudo apt install python3-pip --reinstall now pip3 command is working on terminal. now I install pipenv using pip3 install pipenv it installed succesfully but when i tried to execute pipenv on termnal it gave me pipenv: command not found at this point pip3 also gives ImportError: cannot

'git clone …' works but not 'pip install …' for the same remote url

江枫思渺然 提交于 2019-12-07 08:10:40
问题 I want to install a package via pipenv or pip + virtualenv from a private, ssh accessed, remote repository. While cloning works: git clone git@remoteurl:username/package.git directly installing doesn't: pip install git+ssh://git@remoteurl:username/package.git and outputs the following error: ssh: Could not resolve hostname remoteurl:username: Name or service not known fatal: Could not read from remote repository. I tried pip+virtualenv and pipenv, neither works. I also tried several

Pipenv installationError: Command “python setup.py egg_info” failed with error code 1 in

两盒软妹~` 提交于 2019-12-07 04:01:00
问题 I have recently moved over to using pipenv and every now and then I get the following error when trying to install packages: $ pipenv lock --clear --verbose pipenv.patched.notpip._internal.exceptions.InstallationError: Command "python setup.py egg_info" failed with error code 1 in $ pipenv install social-auth-core line 704, in from_line line, extras = _strip_extras(line) TypeError: 'module' object is not callable $ python setup.py egg_info (k, v) for k, v in attrs.items() File "/home/user/

set up pipenv with supervisor

只谈情不闲聊 提交于 2019-12-06 23:47:24
问题 I want to deploy dev server but I have a problem with starting celery and gunicorn. I'm using scripts for my purposes celery.sh #!/bin/bash cd /home/dev/app pipenv run celery -A config worker -B -l info and start.sh for gunicorn #!/bin/bash cd /home/dev/app pipenv run gunicorn config.wsgi:application -b 127.0.0.1:8005 -w 2 -t 60 \ --env DJANGO_SETTINGS_MODULE=$DJANGO_SETTINGS_MODULE \ --env DSN=$SENTRY_DSN \ --env DATABASE_URL=$DATABASE_URL \ --log-file - \ --error-logfile /home/dev/app