The naming rules for your virtual environments in python [closed] - python

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 1 year ago.
Improve this question
I'm looking for some sort of naming scheme for my virtual environments.
How do you usually name them? Is there naming convention for python virtual environments?

If you are storing your environment inside the project folder some common names are env, venv, .env, .venv, but besides that, I don't think there are any common conventions.

Related

Pylance has two same resolution results [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 months ago.
Improve this question
I am coding python script using vscode
with extensions of Python and Pylance. I met a problem as the picture below
there are two same resolution results at the same time,
and not only for the import;
any other place like resolving variables, modules and functions,
there are always two same results.
If forbidding Pylance, there will be no resolution.
So I wonder how to fix this problem.
Upgrade the Jupyter extension to the pre-release version.

Does this mean i have two installations of python? Should i delete the global one? I only use conda enviroment [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 months ago.
Improve this question
This is very confusing for a newbie
Everything here looks normal. That global one appears to be the macOS system installation - leave it alone, don't use it or try to delete. For each project or project-type create a Conda environment.

Make a python module accessible to everyone [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I've made a python module myself and I would like to make it accessible online (without having to create a website). Do you know any website that collects user-created modules that can be accessed by everyone for import? And if so, what is the process needed to upload it?
You are thinking on PyPi
What is PyPI?
The Python Package Index is a repository of software for the Python programming language. There are currently 83402 packages here.
You can learn about it here: How to submit a package to PyPi

Can someone tell me the purpose of PYTHONSTARTUP? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
i have heard this is an environment variable but Can someone tell me the purpose of PYTHONSTARTUP?
PYTHONSTARTUP is an environment variable you will define specifying the location of the path to a python file.
This python script will be run by python before starting the python interactive mode (interpreter). You can use it for various enhancements like preloading modules, setting colors. (Here) is a helpful post.
Developers use something called dotfiles to enhance the bash environment. Lookup github for sample dotfile scripts which enhances the bash. You can use it with a similar state of mind. Here is a github startup script.

Where should I start my Django site inside of my virtual env? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I made a virtual environment to use Python 2.7 with Django 1.7, since the system's python is 2.6.6.
The virtual env has 5 folders inside of it by default. Should I keep all of them?
/bin/
/include/
/lib/
Where should I start my Django site? I'm thinking a new folder? Does it even matter or is there an industry standard?
You should just start it in the main virtualenv directory.
You certainly shouldn't remove any of those subfolders: you need them for the correct functioning of the virtualenv and the code it contains.

Categories