mkvirtualenv: command not found Git Bash Windows - virtualenv

I'm following the Django installation tutorial for Windows. I ran the installation command below and it worked fine.
pip install virtualenvwrapper-win
However, when I try running mkvirtualenv myproject I get an error saying bash: mkvirtualenv: command not found
I am running Git Bash on Windows. I found a solution for the Windows Command Prompt here, but I was hoping to use Git Bash, because I'm much more familiar with it.
Thanks!

Maybe it is too late to answer this, but let me put my anser here anyhow.
I ran the pip install command twice, and finally everything is working for me. Just run "pip install" line this:
First do it: "pip install virtualenv virtualenvwrapper"
Second, do it: "pip install virtualenvwrapper-win"
Everything should be fine after that.

Related

I can not install OpenMDAO

I have installed Anaconda since it was recommended to use in the OpenMDAO's website. After that I typed pip install 'openmdao[all]' as instructed. However I get an error message saying, "ERROR: Invalid requirement: "'openmdao[all]'"" I was wondering how can I solve this issue. I have no knowledge about the Python or anaconda therefore I don't have a clue what to do about this situation. I searched the internet however I didn't find a solution to this. Thanks in advance!
It's possible you're running the wrong pip executable. Try which pip - it should be located under your home directory instead of a system path such as /bin/pip or /usr/bin/pip.
Make sure you've created and activated an environment in Anaconda:
conda create -n myenv pip
conda activate myenv
python -m pip install 'openmdao[all]'
That command sequence will give the highest chance of success. The single quotes are required for shells like zsh.
Remove the single quotes:
pip install openmdao[all]

There is no activate when I am trying to run my virtual env

1) I installed virtualenv using pip.
2) I ran the command virtualenv venv
3) Then I ran source venv/bin/activate but it says that there is no such file or directory.
When I cd into venv/bin I find 3 things - python, python 2.7, and python 3.5. Does anyone know the problem?
i have had the same problem. and what i did is just run the command
virtualenv env
again. And then more files were generated under directory env/bin, including the activate file. it's so weird.
I solved the similar problem running python3.7 -m venv venv, you can change for your version of python that is installed in your enviroment.
According to Python doc, the installation step is
$ python3 -m pip install --user virtualenv
$ python3 -m venv env
The last command gives a warning message,
The virtual environment was not created successfully because ensurepip is not
available. On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.
apt-get install python3-venv
You may need to use sudo with that command. After installing the python3-venv
package, recreate your virtual environment.
$ sudo apt-get install python3-venv
Now, activate is available.
I solved a similar problem by naming it venv2 when I ran virtualenv. I already had a virtual environment named venv for another project. This allowed me to proceed.
I experienced this problem when using the --upgrade option. Removed the option, and all ran as expected.
I double it is caused by some networking issue, I run it twice to get 'activate' script installed. Maybe first it can't connect to some source so it just abort installation.
I had this happen on rasbian when I hadn't installed python3-pip before creating the venv.

OSX PKG installer completes but dotnet not installed

I am attempting to install .Net Core on my OSX laptop and following the instructions at https://dotnet.github.io/getting-started/. I've downloaded the PKG and installed it successfully (along with its dependency OpenSSL). However, when I attempt to run dotnet from the command line I get a command not found error.
What should I do to fix this and get the dotnet CLI to be installed properly?
I think the installer had some symbolic links missing on post-installation, there is already a fix for this but not sure if it is in the latest pkg as the time of writing.
You could create the symbolic links yourself:
$ ln -s /usr/local/share/dotnet/bin/dotnet /usr/local/bin/
$ ln -s /usr/local/share/dotnet/bin/csc /usr/local/bin/
Hope that helps
to today work this for me
ln -s /usr/local/share/dotnet/dotnet /usr/local/bin/
Well, it's a bit weird but I had the same problem and the only thing I did was reopening the terminal and writing dotnet new mvc then it worked like a charm!
Thanks to the answer on Github issue given by flyingsky in the following link: Command not found dotnet Github issue

ipython will not work even after reinstalling

Im trying very hard to get ipython notebook to work. I got it working in terminal, but I can't get it to work in my browser.
When I type ipython notebook in terminal, it says -bash: ipython: command not found
MacBook-Air:~ me$ sudo easy_install https://github.com/ipython/ipython/tarball/master
Downloading https://github.com/ipython/ipython/tarball/master
error: None
MacBook-Air:~ me$ ipython
-bash: ipython: command not found
Im really unsure why this is happening.
You do not need to (and you probably shouldn't) do sudo easy_install it will probably install things as root, avoid sudo. Check that ipython executable is in your $PATH.
github tarballs are broken for IPython. You do have to deep clone with git if you want to run master, then run python setup.py with the option you like (install, develop, symlink)...
Use pip if you want to run IPython stable.
You might have issues with readline on osx (wrong multiline editting, wrong completion, IPython popping error messages at launch time) this is one of the rare case where you might have to using easy_install for readline.
Maverick (10.9) has issues with python/numpy/matplotlib you might need to have a custom python build with homebrew that does not use system libs.

Where is mongoctl after installation?

I've installed mongoctl according to Mongolab's simple instructions, but I can't do anything with the installed package because which mongoctl resolves to nothing.
The site makes it look like pip installs some kind of command line tool, but it seems like it just installs the python package, which would be fine if all of the documentation didn't treat mongoctl as a command line tool.
What's going on?
You can add the following option to your install command to ensure that "mongoctl" exe goes to /usr/local/bin
--install-option="--install-scripts=/usr/local/bin"
Since mongoctl is already installed on your mac, you will probably need to add a --upgrade and a --force-reinstall
So try the following
sudo pip install mongoctl --install-option="--install-scripts=/usr/local/bin" --upgrade --force-reinstall
What OS are you using?
'mongoctl' should be in /usr/local/bin. Check to make sure that directory is in your PATH
-will