Did you try asking ChatGPT? This is its response to your verbatim question (and if it isn't exactly what you had in mind you can reply and ask it to change things, like do it on Windows or make it a script):
To install Python, you can use the following command:
$ sudo apt-get install python3
To create a virtual environment (venv) for your Python project, you can use the following command:
$ python3 -m venv /path/to/venv
To activate the virtual environment, you can use the following command:
$ source /path/to/venv/bin/activate
To install packages within the virtual environment, you can use the following command:
$ pip install <package-name>
To install command line tools, you can use the following command:
$ sudo apt-get install <tool-name>
To set up the configuration for your project, you will need to edit the appropriate configuration files for the tools and libraries that you are using. The specific steps for this will depend on the details of your project and the tools that you are using.
Once you have set up your environment and installed the necessary packages and tools, you can start coding!
This has a failure mode in each single line, even if we ignore it will not work on any OS that is not debian-like, which is most of them.
First line, you don't chose which Python you install, only the 3, so you don't know if the libs you need will be available, which syntax you can use and which stdlib is at your disposable.
Then, you use venv which may not be available because the first line you used doesn't install all python packages and in some debian/ubuntu versions they don't include venv, setuptools or pip in the python3 package.
Then you pip install packages, which may fail if this has a c extensions which is not a wheel (E.G: you do machine learning), because you didn't get the python headers in the previous commands.
Then you install command lines with apt-get, meaning your tool version may not be upgraded to match the python you used. For pylint and mypy, this means it at beast false positives, at worst crashes
Of course, none of that explains how to setup your IDE to use said virtual, setup things like databases, init the git repo or put good default in config files.
Don't get me wrong, it's a good start, and not worse than most tutorials I read online written by human.
I don't doubt that it will get better over time though, and I can't wait. Bootstrapping is a plague to teach people.
> if it isn't exactly what you had in mind you can reply and ask it to change things
A lot of the things you complain about were underspecified in your question, it has to make some assumptions. And I'll bet if you ran into any of the errors that you describe you could get solutions by simply pasting the errors into the chat box. The code produced by these models is not going to be perfect any more than a human's would be. You'll still need an iterative process and some common sense. But it's easier and faster than doing everything yourself.
I only know how to specify the questions because I know they are sources of problems since I can install an entire setup project from scratch on the top of my head.
Most can't though, and they won't ask specific questions.
But with time, GPT will likely be able to ask questions to get the context, and that will change everything.
I mean if you ask the same question to a human your question is ambiguous enough that you will get the same type of issues.
How is any being or AI meant to read your mind to know you don't want instructions for system X but assume the instructions would be good on system Y etc. I feel sorry for the humans you expect to query you to get what you really want out of you.
To install Python, you can use the following command:
To create a virtual environment (venv) for your Python project, you can use the following command: To activate the virtual environment, you can use the following command: To install packages within the virtual environment, you can use the following command: To install command line tools, you can use the following command: To set up the configuration for your project, you will need to edit the appropriate configuration files for the tools and libraries that you are using. The specific steps for this will depend on the details of your project and the tools that you are using.Once you have set up your environment and installed the necessary packages and tools, you can start coding!