Eleanor Roosevelt was a Blogger

Eleanor Roosevelt wrote an article called "My Day" nearly every day for 26 years. Her pre-cursor to blog posts is an incredible look into daily life from 1935 to the 1960s.

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Python with virtual environment

From python website “Python is a programming language that lets you work quickly and integrate systems more effectively.”

So it will be a good decision to learn Python 3.x, though tons of project already done by Python 2.x. Gradually, most of them upgrading themselves.

Python is already installed in Mac and Linux. To find python, just open the terminal and write:

But for Windows, we need to install it. So, download Python 3.5.x and install. Just click, click and click. As simple as it is.

Now need to set the environment variable in Windows system:

1. Right-click Computer in the start menu > System Properties > Advanced system settings > Environment Variables

2. Select PATH in the System variables section

3. Click Edit

4. Add Python’s path to the end of the list (the paths are separated by semicolons). For example:

A Virtual Environment is an isolated working environment of Python which allows us to work on a specific project without worry of affecting other projects.

For example, if we can work on a project which requires Django 1.7 on Python 2.7.x while also maintaining a project which requires Django 2.0 on Python 3.x.

virtualenv:

As we will emphasize on Python 3.x, we can simply install virtual environment by-

Basic Usage:

Creating a virtual environment:

This creates a copy of Python in whichever directory you ran the command in, placing it in a folder named djproject.

Now, to begin using the virtual environment, it needs to be activated:

We can begin installing any new modules without affecting the system default Python or other virtual environments. To check the python env.

Now we can install django or any other module:

When we are done working in the virtual environment for the moment, you can deactivate it:

This puts you back to the system’s default Python interpreter with all its installed libraries.

To delete a virtual environment, just delete its folder.

Another way:

Another way of creating virtual environment:

or,

Some basic commands:

Add a comment

Related posts:

Puzzles and Mysteries of Physics in Everyday Life. Part 2.

This is part of a series that began with Part 1. This series is available in single book form with additional appendices and table of contents at our site here: QuantumMysteries.com. Electromagnetic…

Any domain name is better than no name at all.

The most common top-level domain (TLD) is .com, but many others have also emerged from .academy to .coffee. by .zone. Visit namecheckcer for a list of new extensions offered by Google Domains. This…

Quest for a cooler Macbook

My typical workload on my Macbook is mostly computation on Python Jupyter Notebooks, building analytics and monitoring systems on PyCharm or building apps on Android Studio. Almost all my ML/AI work…