Python Forum
How to create an environment for program downloaded from github
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to create an environment for program downloaded from github
#1
I downloaded a ZIP package from git hub.
Also downloaded anaconda.
According to the instructions, I should create an environment.
But I need to indicate the path to the .yml

I wrote this:
(base) C:\Users\UserName>cd conda env create -f cmd C:\Users\UserName\Downloads\folder1\folder2\environment.yml

Something is incorrect.

I am a total newbie and I need for now just to install it.
Please, correct, what I am doing wrong
Reply
#2
Quote:According to the instructions, I should create an environment.
Most likely you were asked to create a virtual environment.
There are several ways to do this.
I generally create it using python's venv
from command line (in directory where you will keep project):
python -m venv venv
. ./venv.bin.activate
Reply
#3
Yes, you are right,
Quote:Most likely you were asked to create a virtual environment

The instructions were:
To create environment write in anaconda:
conda env create -f environment.yml

To activate the environment:
conda activate programX


I have files for this in Downloads, including .yml.

How should I precisely indicate in anaconda this path to the environment.yml?

Sorry, If I didn't get your answer.
Reply
#4
I agree with Larz60+. But as you have installed Anaconda you might also start "anaconda-navigator". You will get a window. On the left side you can click "Environments". In the middle part of the window you will find near the bottom a button "Create". Click that to create a new environment.

And you may also do the same with "conda". Type "conda create --help" to see the options. I believe the command will have to be something like:
conda create -n NameOfEnvironment --file C:\Users\UserName\Downloads\folder1\folder2\environment.yml
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Downloaded file corrupted emont 5 821 Oct-01-2023, 11:32 AM
Last Post: snippsat
  I downloaded a script and I cant run this luoxr18 3 1,195 Apr-16-2023, 09:33 AM
Last Post: Larz60+
  Unable to create an environment richard_wylde 0 1,468 Nov-05-2020, 03:11 PM
Last Post: richard_wylde
  How to create local copies of Python packages so they do not have to be downloaded okhajut 3 2,009 Sep-29-2020, 02:22 PM
Last Post: buran
  Create a program aien33 1 1,407 Jun-17-2020, 05:56 AM
Last Post: SheeppOSU
  Create a program that PING a list of IPs skaailet 7 6,329 Mar-26-2020, 10:46 PM
Last Post: snippsat
  Create .exe with program.py preliator 2 1,962 Nov-05-2019, 12:00 PM
Last Post: buran
  Why the file is not downloaded in full with this script? Jacklops 2 2,694 Jan-07-2019, 09:33 AM
Last Post: DeaD_EyE
  importing downloaded usb module kiyoshi7 5 4,414 Apr-29-2018, 06:44 PM
Last Post: snippsat
  how to create useful neural network program? hsunteik 1 3,056 Feb-04-2017, 11:32 AM
Last Post: ichabod801

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020