You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have faced the same problem.
Because pip doesn't support --process-dependency-links at all, I use pip install pip==18.1 to reinstall pip to previous version and it works.
The following instructions worked for me. The instructions assumes that the current directory has both GPflow and GPflowOpt folders (clone them from github if needed).
Check the insatllation and version. Can face an error like "GPflow-0.5.0\gpflow\session.py", line 8, in AttributeError: module 'tensorflow' has no attribute 'Session'"
Solution: in TF 2.0 you should use tf.compat.v1.Session() instead of tf.Session()
Then install gpflowopt using "pip install git+git://github.com/GPflow/GPflowOpt.git"
Check the insatllation and version. anaconda3\envs\OPT\lib\site-packages\gpflow\session.py", line 8, in
class TracerSession(tf.Session)
Solution: in TF 2.0 you should use tf.compat.v1.Session() instead of tf.Session()
Now it is installed properly.
Reacted by pyLP7, kysynth, Nick Firoozye and Lingxiao Lyu
Activity
outboundbird commentedon Apr 8, 2019
Try
pip install git+https://github.com/GPflow/GPflowOpt.git --process-dependency-linksto get the dependencyhmedal commentedon Apr 8, 2019
Thank you! Unfortunately, it looks like pip no longer supports
--process-dependency-links(pypa/pip#6162).I am using pip version 19.0.3.
icouckuy commentedon Apr 17, 2019
You can install GPFlow 0.5.0 directly from git:
https://github.com/GPflow/GPflow/tree/0.5.0
Raychiu123 commentedon Jun 18, 2019
I have faced the same problem.
Because pip doesn't support
--process-dependency-linksat all, I usepip install pip==18.1to reinstall pip to previous version and it works.abyvinod commentedon Apr 18, 2020
The following instructions worked for me. The instructions assumes that the current directory has both
GPflowandGPflowOptfolders (clone them from github if needed).These instructions follow from:
pip==18.1did not work for me.These instructions allowed me to run the examples
pallavimitra commentedon Sep 24, 2020
Faced the same issue. I have Python of version 3.8.3.
For gpflow a version='>=3.6,<3.7.0a0' is required.
Therefore, my solution was as follows:
install a venv with the given python version.
install GPFlow 0.5.0 directly from git: https://github.com/GPflow/GPflow/tree/0.5.0
check the version before cloning (better to download the 0.5.0 version and use pip install .)
Check the insatllation and version. Can face an error like "GPflow-0.5.0\gpflow\session.py", line 8, in AttributeError: module 'tensorflow' has no attribute 'Session'"
Solution: in TF 2.0 you should use tf.compat.v1.Session() instead of tf.Session()
Then install gpflowopt using "pip install git+git://github.com/GPflow/GPflowOpt.git"
Check the insatllation and version. anaconda3\envs\OPT\lib\site-packages\gpflow\session.py", line 8, in
class TracerSession(tf.Session)
Solution: in TF 2.0 you should use tf.compat.v1.Session() instead of tf.Session()
Now it is installed properly.