pipenv

Error: gunicorn: Failed to find application object 'app' in 'app'

戏子无情 提交于 2019-12-28 06:58:46
问题 Here's my code: app.py from flask_graphql import GraphQLView from app.infrastructure.graphql import schema from app.infrastructure.api_resource import app app.add_url_rule('/graphql', view_func=GraphQLView.as_view('graphql', schema=schema, graphiql=True)) if __name__ == '__main__': app.run(debug=True) api_resource.py import app.infrastructure.repository as repository from flask import request, url_for from flask_restplus import Api, Resource, fields from sqlalchemy_pagination import paginate

Error with simplejson dependency when installing Eve

守給你的承諾、 提交于 2019-12-24 19:25:43
问题 I am new to Python and am trying to install Eve. I have Python 3.6.3 installed and am using pipenv. When I run pipenv install eve it fails with the error (here's an excerpt): running build_ext building 'simplejson._speedups' extension error: [WinError 3] The system cannot find the path specified: 'C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v8.1\\lib' _______________________________________ Error: An error occurred while installing eve! Failed building wheel for simplejson From what I

Create standalone environment for Python [duplicate]

家住魔仙堡 提交于 2019-12-24 07:46:04
问题 This question already has answers here : Create a single executable from a Python project (2 answers) Closed 5 months ago . I'm developing a tool based on Python, and I need to distribute this tool for users without technical skills. My way to distribute the tool was to create an installer with all the requirements, including the python executable and the libraries. For this purpose, I tried to make a virtual environment (used pipenv to create it) and copied the resultant work directory with

Create standalone environment for Python [duplicate]

末鹿安然 提交于 2019-12-24 07:42:56
问题 This question already has answers here : Create a single executable from a Python project (2 answers) Closed 5 months ago . I'm developing a tool based on Python, and I need to distribute this tool for users without technical skills. My way to distribute the tool was to create an installer with all the requirements, including the python executable and the libraries. For this purpose, I tried to make a virtual environment (used pipenv to create it) and copied the resultant work directory with

Pipenv on windows failing with error installing wrapt (python 3.6.8)

柔情痞子 提交于 2019-12-24 05:54:53
问题 I'm starting on a new python project and when I try to install my virtual environment I keep getting a failure with wrapt . I've read and tried all solutions I could find here and other forums for a couple of days but without success. Could you think of what the problem could be to give it another go? This is pretty strange as the same project and code works in other Windows machines which are similar... D:\git_project>python --version Python 3.6.8 D:\git_project>pip --version pip 19.3.1 from

Do I need to install Jupyter notebook in every virtual environment?

老子叫甜甜 提交于 2019-12-23 16:44:50
问题 I isolate my data science projects into virtual environments using pipenv . However, running a Jupyter notebok does not access the local environment and uses the default IPyKernel. I've seen that you can register virtual environments from within the environment, but this requires installing the ipykernel package which itself requires Jupyter! Is there anyway to avoid this and just use a single Jupyter install for all virtual environments? 回答1: Generally, you'd install jupyter once and do the

Running --upgrade with pipenv

萝らか妹 提交于 2019-12-23 07:30:06
问题 Running (say for numpy) pipenv install --upgrade numpy tries to install --upgrade and numpy instead of normal pip behavior for --upgrade switch.Is anyone else having this problem? 回答1: For pipenv use update command , not --upgrade switch. You can update a package with: pipenv update numpy See comments in documentation. This will also persist new version of package in Pipfile / Pipfile.lock , no manual editing needed. There was a bug with this command under certain scenarios, but hopefully it

Python sees `json` module but pipenv doesn't. Why?

萝らか妹 提交于 2019-12-23 03:54:07
问题 I am trying to help a coworker configure their VM. I am having a very strange problem: Z:\codebase>pipenv uninstall Locking [dev-packages] dependencies. Locking [packages] dependencies. nv\\resolver.py", line 3, in <module> import json ModuleNotFoundError: No module named 'json' Z:\codebase>python Python 3.5.3 (v3.5.3:1880cb95a742, Jan 16 2017, 16:02:32) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import json >>> json <module

differences between users even after using Pipfile and Pipfile.lock with explicit versions

*爱你&永不变心* 提交于 2019-12-22 01:35:10
问题 Sorry for the length, this is a pretty intricate pipenv situation. At my company we are using pipenv (with both Pipfile and Pipfile.lock ) to control packages used on different engineers' laptops. This is even more important for us than for most teams because we're also using Zappa to deploy AWS Lambda code, and it apparently packages the dependencies directly from the deployer's laptop to deploy them. So if people's laptops aren't totally aligned in terms of dependencies, we can get

Package Python Pipenv project for AWS Lambda

女生的网名这么多〃 提交于 2019-12-21 17:23:23
问题 I have a python project and I am using pipenv to handle deps. I need to create a zip file that includes the source code and all the dependencies code as well. I need this zip file for uploading it to AWS Lambda. When working with pipenv, it downloads the dependency libraries somewhere in the computer, but for packaging/distribution of the project I need all the necessary code to be contained in the same place (a zip file). Is there a way to run pipenv and set it to install dependencies at a