Skip to content

Commit 2b610f6

Browse files
committed
reverted the ipython version back to to 7.16.1 to work with jedi version
1 parent 2ff4e51 commit 2b610f6

File tree

3 files changed

+30
-7
lines changed

3 files changed

+30
-7
lines changed

README.md

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff 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.
7598
There 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-
&nbsp;
112+
- *Note: Depending on system performance, creating the environment can take some time.*
113+
&nbsp;
91114

92115
#### Install AMPL
93116
Go to the `AMPL` root directory and install the AMPL package:

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.4.0
1+
1.4.1

conda/pip_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ hyperopt==0.2.5
3737
importlib-metadata==3.3.0
3838
iniconfig==1.1.1
3939
ipykernel==5.5.0
40-
ipython==7.16.3
40+
ipython==7.16.1
4141
ipython-genutils==0.2.0
4242
jedi==0.18.0
4343
Jinja2==3.0.1

0 commit comments

Comments
 (0)