-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using pipenv #69
Using pipenv #69
Conversation
Pipfile
Outdated
[dev-packages] | ||
|
||
[requires] | ||
python_version = "3.7" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't seem to run my pipenv
properly using Python 3.7 (complains about not being able to get Babel). Setting this to 3.8 however does work for me. Is this a problem?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure, let me check (3.7 seems to be my system's default python3 version)
Can you show the error?
Pipfile
Outdated
@@ -0,0 +1,23 @@ | |||
[[source]] | |||
url = "https://pypi.python.org/simple" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't really matter but this can be https://pypi.org/simple
I can't seem to use a python version not installed in my system using pipenv (using requirements.txt seems like an easy solution for the problem, since there's no need to specify a python version) What do you think? |
To allow more Python versions, you can add the following to the [requires]
python_version ~= “3.6”
# The rest of your packages This will allow use of Python versions |
@iksaku I don't think that is possible as described here: As of right now the solution is pretty clean. |
It is considered a good practice to use an environment on python projects.
This way we don't have to worry about incompatibility and breaking system packages.
I added instructions on how to use pipenv for the project and created a Pipfile (which is equivalent to requirements.txt). Worked on my machine (Ubuntu 19.10)