I am rubbing my head not understand why Pycharm can recognize flask with venev as project interpreter, while terminal can't. I tried to look it up online but failed.
Project interpreter in Pycharm with flask showing up installed
venv in terminal
By looking at the images you sent, I ended up with the following conclusion.
The terminal successfully recognized the virtual environment of your project, i.e. venv. However, you don t have the flask module installed in that virtual environment, that s why you get the error flask: command not found.
To see that go into your terminal, inside the virtual environment and type pip list to see all the available libraries. If you don t have Flask in there just type pip install flask.
Related
This question has been asked before, but the fixes don't work for me. I am running Windows 10 with WSL (Debian) and I am unable to run a QT program because of the error
texconv: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
I found a post which discusses the same problem. I've tried tolos' and Envek's solutions, but they don't work for me. For me the file is under /usr/lib/x86_64-linux-gnu/ like tolos' was. I also sudo-ed the strip and recompiled the qt program (If that even matters), but it still doesn't work.
If it matters, my kernel version (checked with uname -r) is 4.4.0-18362-Microsoft and I have no issues running this qt program on my other PC that uses WSL Ubuntu. And I installed the qt stuff with this command: sudo apt-get install qt5-default qtbase5-dev
I had an image that I would run using docker run and which would successfully launch KStars -- an application that uses this libQt5core.so.5.
If I ran the very same image on a Kubernetes cluster then I would get an error message when launching KStars like libQt5Core.so.5: cannot open shared object file: No such file or directory or some such.
Putting this strip command into the Dockerfile and rebuilding the image allowed the application to load successfully in both environments.
sudo strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
I got it working in the end. I upgraded from WSLv1 to WSLv2 and that solved it. Not sure why, but it must have been a WSLv1 Debian bug
I'm having a problem with the Heroku CLI.
I was following the Heroku tutorial for Node.js.
I installed the Heroku CLI and checked that node --version, npm --version and git --version were at the latest version available.
I then run the command "heroku login" from git bash, but after inserting the email it complained about permissions so I re run git bash in administrator mode and everything seemed fine, I got to the part where you do "heroku create" it started downloading something but then I had a warning about not using git bash for "create" but to opt for powershell or cmd.
So I switched to cmd.exe with admin privileges but now the "heroku" command does nothing:
"$ heroku
The system cannot find the path specified."
The error seems related to my os, I checked my Windows Environment Variables and the path to heroku's exe is correctly set up (in fact it worked a bit earlier) to "C:\Program Files\Heroku\bin".
So I don't know how to use heroku at this point or what can I do to fix this error.
I installed heroku cli on windows 10 via exe installer.
When i try to run heroku --version command or heroku login
command, the command window does not respond. It does not give any error.
Then i uninstalled it and installed it using npm install -g heroku-cli
but getting same result.
Node version - 8.7.0
In Windows cmd prompt, do:
echo %USERPROFILE%
Go to your C:\Users\YOURNAME
Look for a file named:
_netrc
This file stores login credentials. Delete it.
Then check for an update:
heroku update
Then try to log in:
heroku login
I saw some people create an environment variable called HOME and add the path to YOURNAME so the environment knows to look for the _netrc file there.
Other trouble-shooting ideas if the above doesn't work for you can be found at Heroku CLI troubleshooting
In windows , run %LOCALAPPDATA%\heroku, completely delete this folder. and check again on cmd by typing heroku --version. Hope this helps.
I ended up uninstalling heroku from the Windows Installer and instead used the standalone tarball.
You can get the tarballs from here.
After you downloaded and extracted it, you can go to your terminal and cd into the directory where you extracted the file and do the following command:
./bin/heroku --version
Whenever you need the heroku CLI, you can cd into the directory where heroku is, then ./bin/heroku is the executable for heroku.
I have XAMPP 5.6.3 installed on Windows 32bits (PHP Version 5.6.3), and I want to install PHPUnit.
I followed the instruction in the official site of PHPUnit :
https://phpunit.de/manual/current/en/installation.html#installation.phar.windows
but when I run this line phpunit --version in the command line, I get this message :
'php' is not recognized as an internal or external command, operable program or batch file.
how can I solve this problem ?
The problem was that PHP is not included in my PATH.
So I followed this solution :
Windows button + Pause
List item
Advanced System Settings
Environment Variables
append PHP installation dir to the PATH variable.
I installed express-generator but when I write in CMD (express --view=ejs astronomy) it gives me this error: 'express' is not recognized as an internal or external command,
operable program or batch file.
I did with express-generator couple projects before I installed anaconda python 3.7.4
First, have a look at this: how-to-ask It will help you to use Stack Overflow more effectively.
I think you have not installed express globally!
to install it globally, try the following.
npm install -g express
Also, if express is not in your PATH you have to add the full path to run it in cmd:
\myproject\node_modules\.bin\express.cmd
(Usually is not recognized as an internal or external command happens because the system couldn't find it in the path variable!)
Hope this helps!
Good Luck!!