I used to use several Unix-based commands with Anaconda 2 (i.e., Python 2.7) in Windows 7. For example, these commands ls, mkdir, rm,...
can work properly with Anaconda Command Prompt.
Recently, I have upgraded to Windows 10 and installed Anaconda 3 running with Python 3.5. These command mentioned above cannot be used in the Anaconda 3. I have tried to uninstalled and reinstalled Anaconda 3 for times, but it can work as before.
Any one has a suggestion?
The beauty of cygwin is that you can use Unix commands to work on files on Windows systems. This can be a lot faster than moving the files you need to work on to a Unix system, processing them there, and moving them back -- especially if you have work you'd like to schedule to run off hours.
Access your start menu in the bottom-left corner and search for “anaconda“. Then, click on Anaconda Prompt. Wait until the process is complete, then close the Anaconda Prompt and open a CMD window. See if you're now able to run Conda commands.
The Windows Subsystem for Linux (WSL) allows you to run Linux inside Windows. The upcoming version of WSL will be using the real Linux kernel inside Windows. This WSL, also called Bash on Windows, gives you a Linux distribution in command line mode running as a regular Windows application.
At the command line in Anaconda Prompt, use conda to install the m2-base utilities:
conda install m2-base
This will give you the basic linux commands.
One simple way to have access to those commands on your windows machine would be to use cygwin. You can install that. Then open a "Cygwin Bash Shell" and in this shell you will be able to use ls, mkdir, rm, ...
as well as create conda environments etc. You can use this instead of your command prompt if you want.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With