Temporarily set environment variables with export command under Linux

Source: Internet
Author: User
Tags locale
A mistake was made today in the execution of the flask command,
Runtimeerror:click'll abort further execution because Python 3 is configured to use ASCII as encoding for the ENVIRONM Ent.
Obviously, it is said that the Python3 character set has problems, but also very humane to give the solution:
This system supports the C.UTF-8 locale which is recommended.
You might is able to resolve your issue by exporting the
Following environment variables:

export LC_ALL=C.UTF-8export LANG=C.UTF-8

Click discovered that exported a UTF-8 locale
It means that I need to execute two export commands, set the character set, follow the prompts to set up to run normally, borrow this question to draw a knowledge point, export command and locale character set.
The Linux Export command is used to set or display environment variables.
When executing a program in the shell, the shell provides a set of environment variables. Export can add, modify, or delete environment variables for use by subsequent executing programs. export is only valid for that landing operation .
The point is that export execution only applies to the current login operation, which means that when you close the current window and log in again, the variable returns to its original value and needs to be set again.

Temporarily set environment variables with export command under Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.