How to create new environment using conda

0 votes

Hi Guys,

I installed Anaconda in my system. Every time I try to install any module it uses base environment. How can I create my own environment? 

Apr 21, 2020 in Python by akhtar
• 38,260 points
977 views

1 answer to this question.

0 votes

Hi@akhtar,

Environment means you are creating your own lab for your project like that. To create an environment, use the below given command.

$ conda env list
$ conda create --name tensor
WARNING: A space was detected in your requested environment path
'C:\Users\anaconda3\envs\tensor'
Spaces in paths can sometimes be problematic.
Collecting package metadata (current_repodata.json): done
Solving environment: done
==> WARNING: A newer version of conda exists. <==
  current version: 4.8.2
  latest version: 4.8.3
Please update conda by running
    $ conda update -n base -c defaults conda
## Package Plan ##
  environment location: C:\Users\anaconda3\envs\tensor
Proceed ([y]/n)? y
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
$ activate tensor
answered Apr 21, 2020 by MD
• 95,460 points

Related Questions In Python

+1 vote
1 answer

How to create plots using python matplotlib in IPython notebook?

I think you should try: I used %matplotlib inline in ...READ MORE

answered Aug 8, 2018 in Python by Priyaj
• 58,100 points
1,469 views
0 votes
2 answers

How to create new folder?

import os try: os.makedirs(path) except ...READ MORE

answered Aug 31, 2018 in Python by Omkar
• 69,230 points
808 views
0 votes
1 answer

How to create new folder?

You can create a folder with os.makedirs() and use os.path.exists() to ...READ MORE

answered Sep 3, 2018 in Python by Priyaj
• 58,100 points
807 views
0 votes
1 answer

How to create a train and test sample from one dataframe using pandas?

Hi, The below written code can help you ...READ MORE

answered Jul 4, 2019 in Python by Taj
• 1,080 points
5,699 views
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,359 views
0 votes
1 answer
0 votes
0 answers

How do you install spyder on anaconda?

Is there a way to work with ...READ MORE

Jul 24, 2019 in Python by Waseem
• 4,540 points
638 views
0 votes
1 answer

How to Clone Conda environment?

Hi@akhtar, You can use the --clone command to ...READ MORE

answered Jun 22, 2020 in Python by MD
• 95,460 points
13,749 views
0 votes
1 answer

How to create a virtual environment to run a particular version of python?

Hi@akhtar To create a virtual environment, decide upon ...READ MORE

answered Jun 25, 2020 in Python by MD
• 95,460 points
688 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP