File tree Expand file tree Collapse file tree 3 files changed +30
-7
lines changed
Expand file tree Collapse file tree 3 files changed +30
-7
lines changed Original file line number Diff line number Diff line change @@ -72,22 +72,45 @@ AMPL is a Python 3 package that has been developed and run in a specific conda e
7272
7373#### Create conda environment
7474<a name =" create-conda-env " ></a >
75+
76+ There are two options:
77+ ##### Option 1: do it manually.
78+
79+ ```
80+ cd conda
81+
82+ conda create -y -n atomsci --file conda_package_list.txt
83+
84+ conda activate atomsci
85+
86+ pip install -r pip_requirements.txt
87+
88+ # This is to fix the error:
89+ #
90+ # 'tensorflow.python.training.experimental.mixed_precision' has no attribute '_register_wrapper_optimizer_cls'
91+
92+ pip uninstall -y keras
93+
94+ pip install -U tensorflow==2.8.0 keras==2.8.0
95+ ```
96+
97+ ##### Option 2: use a script.
7598There is a script ` create_ampl_env.sh ` that will automate the conda env creation and the packages install for you.
7699
77100```
78101$ source create_ampl_env.sh
79102```
80103
81- It will
104+ It will
82105
83106- Prompt for a new conda environment name
84107- Then run
85- - conda create
86- - conda activate
108+ - conda create
109+ - conda activate
87110 - and pip install and other fixes
88111
89- - * Note: Depending on system performance, creating the environment can take some time.*
90-   ;
112+ - * Note: Depending on system performance, creating the environment can take some time.*
113+   ;
91114
92115#### Install AMPL
93116Go to the ` AMPL ` root directory and install the AMPL package:
Original file line number Diff line number Diff line change 1- 1.4.0
1+ 1.4.1
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ hyperopt==0.2.5
3737importlib-metadata==3.3.0
3838iniconfig==1.1.1
3939ipykernel==5.5.0
40- ipython==7.16.3
40+ ipython==7.16.1
4141ipython-genutils==0.2.0
4242jedi==0.18.0
4343Jinja2==3.0.1
You can’t perform that action at this time.
0 commit comments