PostgreSQL
 sql >> डेटाबेस >  >> RDS >> PostgreSQL

दूसरे कंप्यूटर पर पायथन वातावरण को दोहराएं

चूंकि आप एनाकोंडा पर्यावरण का उपयोग कर रहे हैं, मुझे लगता है कि आप अपने द्वारा उल्लिखित परियोजना के लिए वर्चुअलएन्व का उपयोग कर रहे हैं। निम्नलिखित कोड के साथ इसे दोहराना वास्तव में आसान है:

# list all virtualenvs in your anaconda folder
$ conda info –envs          # this will list all virtualenvs created by you, you can then choose the specific virtualenv here.

# to activate the virtualenv of your interest
$ conda activate [virtualenv_name] 

# export all packages used in the specific virtualenv (conda activated) 
$ pip freeze > requirements.txt             # save the output file as requirements.txt

# set up a new conda virtualenv in current or separate machine and install with the requirements.txt
$ conda create --name <env_name> python=3.6.5 --file requirements.txt  

# Please note that occasionally you may need to check requirements.txt if there is any abnormal list of packages. The format should be in either [package==version] or [package].

या आप सीधे संपूर्ण वर्चुअलएन्व बना सकते हैं।

# copy exactly same virtualenv on separate machine

# export all packages used in the specific virtualenv (conda activated), including current python version and virtualenv name
$ conda env export > environment.yml        # save the output file as environment.yml    

# set up a new conda virtualenv in current or separate machine and install with the requirements.txt 
$ conda env create -f environment.yml       # using Conda; to modify “name” in the environment.yml file if to set up own same anaconda/machine



  1. Database
  2.   
  3. Mysql
  4.   
  5. Oracle
  6.   
  7. Sqlserver
  8.   
  9. PostgreSQL
  10.   
  11. Access
  12.   
  13. SQLite
  14.   
  15. MariaDB
  1. पोस्टग्रेज:सभी तालिकाओं के लिए प्राथमिक कुंजी अनुक्रम अपडेट करें

  2. से चुनें ... - JSON प्रारूप में एक मान के आधार पर

  3. किसी व्यू पर डिलीट रूल कैसे लिखें?

  4. PostgreSQL JDBC में स्कीमा सेट करना काम नहीं कर रहा है

  5. Postgresql 8.2 में नेस्टेड लेनदेन?