pipenv

Pipenv on Windows: 'module' object is not callable

*爱你&永不变心* 提交于 2020-07-23 07:59:05
问题 I'm having trouble using Pipenv on my Windows 10 machine. Initially, I got a timeout error while trying to run pipenv install <module> and following this answer, I disabled Windows Defender. That got rid of the timeout error and it then seems to successfully install the package at ~/.virtualenvs but I get an error when it comes to creating Pipfile.lock : Adding flask to Pipfile's [packages]... Pipfile.lock not found, creating... Locking [dev-packages] dependencies... Locking [packages]

Pipenv install Locking Failed!No module named 'json'

雨燕双飞 提交于 2020-06-17 09:12:21
问题 I am cleaning my computer recently.I deleted vstudio2017. Now my environment python3.6,win10 Strange things have happened,pipenv seems to be completely invalid. PS F:\hankspace\flaskproject> pipenv install Pipfile.lock not found, creating… Locking [dev-packages] dependencies… Locking [packages] dependencies… Locking Failed! Traceback (most recent call last): File "c:/users/hank/appdata/local/programs/python/python37/lib/site-packages/pipenv/resolver.py", line 3, in <module> import json

Installing dependencies of a local dependency with pipenv

懵懂的女人 提交于 2020-06-10 09:27:23
问题 Background We have project with the following high-level directory structure* ./datascience/ ├── core │ └── setup.py ├── notebooks │ └── Pipfile └── web └── Pipfile *Excluded all the irrelevant files and directories for brevity. The core package is a library. It's a dependency of both the notebooks and web applications. The core package, being a library, has its dependencies specified in setup.py import setuptools setuptools.setup( install_requires=[ 'some-dependency', 'another-dependency' ]

Installing dependencies of a local dependency with pipenv

我的梦境 提交于 2020-06-10 09:25:22
问题 Background We have project with the following high-level directory structure* ./datascience/ ├── core │ └── setup.py ├── notebooks │ └── Pipfile └── web └── Pipfile *Excluded all the irrelevant files and directories for brevity. The core package is a library. It's a dependency of both the notebooks and web applications. The core package, being a library, has its dependencies specified in setup.py import setuptools setuptools.setup( install_requires=[ 'some-dependency', 'another-dependency' ]

google cloud speech ImportError: cannot import name 'enums'

房东的猫 提交于 2020-06-01 06:57:08
问题 I'm using google-cloud-speech api for my project . I'm using pipenv for virtual environment i installed google-cloud-speech api with pipenv install google-cloud-speech and pipenv update google-cloud-speech i followed this docs https://cloud.google.com/speech-to-text/docs/reference/libraries This is my code: google.py: # !/usr/bin/env python # coding: utf-8 import argparse import io import sys import codecs import datetime import locale import os from google.cloud import speech_v1 as speech

How to fix “ERROR: Could not find a version that matches install”?

我怕爱的太早我们不能终老 提交于 2020-05-27 06:06:52
问题 I am trying to install django-crispy-forms using pipenv. It installs because when I run "pip freeze" command I see it. when it is time to Locking [packages] dependencies… It faces to lock and I get this error. [pipenv.exceptions.ResolutionFailure]: File "c:/users/rapture c. godson/appdat a/local/programs/python/python37-32/lib/site- packages/pipenv/resolver.py", line 69, in resolve [pipenv.exceptions.ResolutionFailure]: req_dir=requirements_dir [pipenv.exceptions.ResolutionFailure]: File "c:

Using SQLite3 with Django 2.2 and Python 3.6.7 on Centos7

微笑、不失礼 提交于 2020-05-25 04:13:51
问题 I am moving my Django code from 2.1.7 directly to the new Django 2.2. The only problem I encountered in my Centos7 development environment was that my local development database (sqlite3) version was incompatible using my Python 3.6.7. The error I was getting from "manage.py runserver" was: django.core.exceptions.ImproperlyConfigured: SQLite 3.8.3 or later I am unable to use another version of Python because this is the maximum supported by AWS elasticbeanstalk. The Python 3.6.7 seems to come

batch: launch pipenv shell, then run command in the virtual environment

我只是一个虾纸丫 提交于 2020-05-15 08:47:07
问题 Here is a batch script: Z: cd Z:\different_directory pipenv shell cd ..\another_directory :End cmd /k What happens here is that the pipenv shell gets launched, but the virtual environment does not cd. Instead, once I exit the pipenv, it then runs the cd command. Is it possible to run a command from inside the pipenv using this batch script? 回答1: You can use pipenv run instead of pipenv shell to directly run a python command or a batch script. You won't be able to run pipenv run cd ../another

Installation of pipenv on Windows fails

|▌冷眼眸甩不掉的悲伤 提交于 2020-05-13 03:36:41
问题 I am working on a website with Django Heroku template. I want to work on this website on my Windows computer, and one of the requirements to work with Heroku and Python is to have pipenv (the project has a Pipfile). To install pipenv on Windows, I have tried two commands in the cmd terminal, which gave approximately the same error: pip install pipenv results in Collecting pipenv Using cached pipenv-11.9.0.tar.gz Complete output from command python setup.py egg_info: error in pipenv setup

Installation of pipenv on Windows fails

江枫思渺然 提交于 2020-05-13 03:36:01
问题 I am working on a website with Django Heroku template. I want to work on this website on my Windows computer, and one of the requirements to work with Heroku and Python is to have pipenv (the project has a Pipfile). To install pipenv on Windows, I have tried two commands in the cmd terminal, which gave approximately the same error: pip install pipenv results in Collecting pipenv Using cached pipenv-11.9.0.tar.gz Complete output from command python setup.py egg_info: error in pipenv setup