I installed Airflow through
pip install apache-airflow
in Conda Promt. It's installed normally, but when i'm trying to launch this command through Conda Prompt:
airflow initdb
It gives me an error that "airflow is not an internal or external command, executable program, or batch file"
How to solve it?
I assume you are running this in windows, you can find more info here: https://stackoverflow.com/a/42510906/840984
In short: Airflow doesn't officially support running on Windows
Related
I am trying to write a script, which starts pgadmin4. The program starts if I run the script python3 web/pgAdmin4.py from its own folder, but that isn't as fast as running a command from $PATH...
I managed to write a shell script based on other answers from different posts, but sadly the virtual environment still doesn't work (I assume).
The shell script:
#!/bin/bash
source ~/pgadmin4/venv/bin/activate
python3 ~/pgadmin4/web/pgAdmin4.py
The output:
If you have followed these installation steps no need to activate the virtual environment. You can call the executable file pgadmin4 under bin directory that will be executed with the pgadmin4 virtual environment:
#!/bin/bash
~/pgadmin4/venv/bin/pgadmin4
The error message you provided indicates that you lack the "flask" module. Please install it through "pip install flask" or "python3 - m pip install flask".
python3 -m pip install flask
I am getting an error when trying to run pip through Spyder 5.0.3
I have recently installed Spyder 5.0.3 on my machine from https://www.spyder-ide.org/
When I attempt to exectute "pip --version" on IPython in Spyder I get the following error message:
Note: you may need to restart the kernel to use updated packages.
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
How do I fix this so I can run pip in IPython Spyder?
The standalone installer for Windows available in the Spyder website doesn't have pip in it. If you want to use or install a specific package outside of the ones that are shipped with the standalone installer you will need to go with the modular approach to use Spyder (create an environment and select his python executable as the interpreter that Spyder will use).
For that you will need to:
Install a python distribution as for example miniforge: https://github.com/conda-forge/miniforge/tree/4.10.1-3#download
Create a new python environment, install spyder-kernels and the packages you want to use in it.
Set the Spyder interpreter preference to point to the environment created.
The Spyder GitHub wiki has a page that explains the process to setup some of this elements: https://github.com/spyder-ide/spyder/wiki/Working-with-packages-and-environments-in-Spyder#the-modular-approach
Issue is :
I have created an environment with name rasa and python version 3.6: after that, I activated that environment, then started with pip install rasa > after that it is saying requirements already satisfied.
After this, I wrote rasa init command but it shows error: 'rasa' is not recognized as an internal or external command,
operable program or batch file.
where i went wrong???
This seems rasa is already installed in the conda environment and that could have not properly install etc or similar issues.
Follow the following and let me know if it works for you.
conda create --name rasa_project #new virtual env. created
conda activate rasa_project # activated the virtual env.
pip3 install rasa # installed rasa python version 3 here
I am using linux-datascience-svm VM provided on Azure in my batch GPU pool. At first I tried to pip install some libraries like so:
pip install --upgrade pip;
pip install docopt;
pip install pubnub;
pip install azure;
pip install glob2;
pip install theano>=0.8.2
pip freeze;
However when my application tries to import theano it gives a Module Not Found error for theano.
I tried leveraging Anaconda so I tried activating base environment in the pool start task, then running the following task cmdline:
/bin/bash -c "set -e;
source activate base;wait"
however I get the following error:
/bin/bash: line 1: activate: No such file or directory
I tried to put the conda environment activation statement in a bash script and running it but I get this error:
./run.sh: line 3: source: activate: file not found
How can I access my installed libraries like theano after they've been installed on the pool in conda or in the general environment?
Try replacing activate with the absolute path to the activate script in conda. It would look something like
source /data/username/miniconda2/bin/activate base
I'm having some difficulty installing Play on my mac.
I've successfully installed the program after running
export PATH=/path/to/activator-x.x.x:$PATH
But, I can't run the activator command. It says that activator: command not found.
I tried running
chmod u+x /path/to/activator-x.x.x/activator
But, I just get the "no such file or directory" message.
Any and all help would be greatly appreciated.
Thanks
If you just want to install activator successfully, you can do it with the help of HomeBrew which is a software management tool. Type the following command
brew install typesafe-activator
if you have not installed HomeBrew, you can install it using the following command
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Good luck with you
You have to write the export command to the login profile. Usually, this is $HOME/.profile. This file is referred to whenever you open a command shell and thus the system knows the path to activator. If you run the export command directly in the command shell then it will be available only for that session and not when you open a new shell. Here is a tutorial to edit your .profile file.