This experience can also use in Windows & Ubuntu too.
(1) Install NodeJS 12.22 environment
$ curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
$ which npm
$ sudo npm install -g n
$ sudo n 12.22
Right now, you are setup NodeJS 12.22 ready for pynecone development. For more information, if you would like to understand more about using n to do environment managment, then the following section is for you.
When your NodeJS development environment get dirty after doing many
npm install, you can delete it and create new one again.
list all NodeJS environment we have, right now
$ n ls
Select from the list, So you can go what version you want
$ sudo n
Using keyboard up/down to select node/12.0.0 environment
Delete some NodeJS environment for specific version
$ sudo n rm 12.22.12
$ n ls
Create new nodejs environment for specific version
$ sudo n 12.22
$ n ls
Download and install anaconda first.
https://www.anaconda.com/products/distribution
$ which conda
$ conda create -n pynecone-311 python=3.11
$ conda activate pynecone-311
$ pip install pynecone
If you want to leave pynecone-311 environment
$ conda deactivate
Show how many environments you have and where you are staying now.
$ conda env list
$ conda activate pynecone-311
$ conda env list
Right now, you know how to switch environment.
You can leave your pynecone environment.
Then delete it and create it again.
Leave
$ conda deactivate
Delete
$ conda remove -n pynecone-311 –all
Create
$ conda create -n pynecone-311 python=3.11
Enter
$ conda activate pynecone-311
Setup pynecone
$ pip install pynecone
Create pynecone project and run it
$ mkdir my_app_name
$ cd my_app_name
$ pc init
$ pc run