Comments (6)
It's highly advisable you use virtual environments. It'll not only solve said problem, but it'll also save you the headaches that will arise from dependency management, such as conflicting global package installations.
This issue can now be closed in my opinion.
from full-stack-fastapi-template.
I got the same Issue with both my armbian and debian12.
I have set alias python="python3"
in ~/.bashrc
file, but it didn't work.
Maybe it's not a project issue, but a Python issue.
Finally, I tried apt install python-is-python3
, and then it worked
from full-stack-fastapi-template.
Same Issue with My Window WSL
> Running task 1 of 1: python .copier/update_dotenv.py
/bin/sh: 1: python: not found
Traceback (most recent call last):
File "/home/username/.local/bin/copier", line 8, in <module>
sys.exit(copier_app_run())
File "/home/username/.local/lib/python3.10/site-packages/plumbum/cli/application.py", line 638, in run
inst, retcode = subapp.run(argv, exit=False)
File "/home/username/.local/lib/python3.10/site-packages/plumbum/cli/application.py", line 633, in run
retcode = inst.main(*tailargs)
File "/home/username/.local/lib/python3.10/site-packages/decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
File "/home/username/.local/lib/python3.10/site-packages/copier/cli.py", line 71, in handle_exceptions
return method(*args, **kwargs)
File "/home/username/.local/lib/python3.10/site-packages/copier/cli.py", line 263, in main
with self._worker(
File "/home/username/.local/lib/python3.10/site-packages/copier/main.py", line 205, in __exit__
raise value
File "/home/username/.local/lib/python3.10/site-packages/copier/cli.py", line 270, in main
worker.run_copy()
File "/home/username/.local/lib/python3.10/site-packages/copier/main.py", line 759, in run_copy
self._execute_tasks(self.template.tasks)
File "/home/username/.local/lib/python3.10/site-packages/copier/main.py", line 284, in _execute_tasks
subprocess.run(task_cmd, shell=use_shell, check=True, env=local.env)
File "/usr/lib/python3.10/subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'python .copier/update_dotenv.py' returned non-zero exit status 127.
from full-stack-fastapi-template.
Thanks @frank2016ma that actually solves the issue
from full-stack-fastapi-template.
i got the same issue on MacOS, i configured alias python="python3"
in my .zshrc
, but it just don't work
from full-stack-fastapi-template.
@cblberlin Figuring out whether the Python command will be available under python
or python3
, or if it is available at all especially after a fresh installation of Python, is something extremely inconsistent for a variety of reasons, ranging from what shell you're using (BASH, ZSH, etc.) to how the terminal session is being created (VSCode GUI microsoft/vscode-remote-release#83, System Launcher, etc.) to the command interpreter you're using (BASH, ZSH, etc.).
Hence, trying to come up with a one-size-fits-all solution is just not feasible.
If I were you I'd save myself the headache and rollback the modifications you made to ~/.zshrc
to try to fix it, then figure out under which command Python 3 is available by runing python -V
andpython3 -V
(recreate the terminal session by closing it and opening it again in case neither work after having just installed Python 3), so you can use the correct command to create and activate the virtual environment, as pointed out in my previous answer, and call it a day.
from full-stack-fastapi-template.
Related Issues (20)
- How to start the backend server without using docker?
- FASTAPI
- 🐛 Error in frontend when resetting a password: "The passwords do not match" HOT 1
- AttributeError: module 'app.db.engine' has no attribute '_run_ddl_visitor' HOT 1
- How can I override my JWT auth dependency in the endponits in FastAPI testing?
- How do I get this running on local? HOT 3
- Deploying on a machine with nginx HOT 1
- Why React, not Vue?
- Mac M1 Docker error HOT 4
- Bad Gateway returned HOT 4
- [Improvement] Replace Prettier and Eslint with Biome and add pre-commit hooks HOT 1
- Feature Request: Support for GitHub Codespaces Deployment and Development HOT 2
- Login error in Dashboard HOT 5
- Secrets should not be versioned by default HOT 3
- Enable discussion on this repo? HOT 1
- Support the use of dev containers for reproducible dev environment HOT 1
- Embracing Technological Evolution: A Journey Toward Innovation
- Debug Launch Configuration for "Debug Frontend: (...)" does not work on WSL
- Z
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from full-stack-fastapi-template.