I tried pip install fcmeans and pip install f-c-means, but neither of them worked.
Asked
Active
Viewed 901 times
2
Flavia Giammarino
- 7,987
- 11
- 30
- 40
Eltun Əhmədov
- 31
- 1
2 Answers
0
Here is what you could do:
- Install Anaconda and make sure it is working
- In the folder you are going to be working in, create a file,
environment.yaml - Configure the
environment.yamlso that it contains the packages you want to work with. See the sampleenvironment.yamlbelow. Note thatfuzzy-c-meansis pip-installed because it doesn't seem that it is currently hosted directly through anaconda channels - From a terminal in the directory you will be working with (where the
environment.yamlis saved), runconda env create --file environment.yaml. This will create a new virtual environment containing the packages you want, includingfuzzy-c-means. - Activate the new virtual environment that you created, which was the specified as
namein theenvironment.yamlusingconda activate my_env_name. You should note that the name of the environment should appear in the terminal prompt, indicating that the virtual environment is active. - If you are using an IDE with some kind of console where you run code, make sure the interpreter is configured to use the new virtual environment that you just created.
- If you need to make changes to the environment, like add new packages, add them to the
environment.yamland then either delete the entire environment and build it from scratch or runconda env update --file environment.yaml --prune
Sample environment.yaml file
name: my_env_name
channels:
- defaults
dependencies:
- python=3.9
- jupyter
- notebook
- numpy
- pandas
- pip
- pip:
- fuzzy-c-means
Capybara
- 453
- 1
- 4
- 13