I have installed pysyft using the recommended command pip install syft-tensorflow, which automatically installed TF 2.0. It installed everything with no errors, but when I try to import syft using import syft as sy, it says No module named syft. I then installed the syft package, which then started throwing a strange error when I tried to import syft, as depicted below:
File "", line 1, in
File "/usr/local/lib/python3.5/dist-packages/syft/init.py", line 8, in
from syft import frameworks # Triggers registration of any available frameworks
File "/usr/local/lib/python3.5/dist-packages/syft/frameworks/init.py", line 9, in
from syft.frameworks import tensorflow
File "/usr/local/lib/python3.5/dist-packages/syft/frameworks/tensorflow/init.py", line 4, in
from syft_tensorflow.hook import TensorFlowHook
File "/home/matheus/.local/lib/python3.5/site-packages/syft_tensorflow/init.py", line 2, in
from syft_tensorflow.hook import TensorFlowHook
File "/home/matheus/.local/lib/python3.5/site-packages/syft_tensorflow/hook/init.py", line 1, in
import syft_tensorflow.hook.hook_args
File "/home/matheus/.local/lib/python3.5/site-packages/syft_tensorflow/hook/hook_args.py", line 10, in
from syft.exceptions import PureFrameworkTensorFoundError
File "/usr/local/lib/python3.5/dist-packages/syft/exceptions.py", line 16
f"The {package} dependency is not installed. If you intend"
^
SyntaxError: invalid syntax
Can someone help me to solve this error? I'm using a Debian GNU/Linux 9.11 (stretch).
Yes, as is the case with the rest of PySyft, we assume the user has Python 3.6+ installed. Closing this, please open another issue if you have any other installation problems :)
I have installed pysyft using the recommended command pip install syft-tensorflow, which automatically installed TF 2.0. It installed everything with no errors, but when I try to import syft using import syft as sy, it says No module named syft. I then installed the syft package, which then started throwing a strange error when I tried to import syft, as depicted below:
File "", line 1, in
File "/usr/local/lib/python3.5/dist-packages/syft/init.py", line 8, in
from syft import frameworks # Triggers registration of any available frameworks
File "/usr/local/lib/python3.5/dist-packages/syft/frameworks/init.py", line 9, in
from syft.frameworks import tensorflow
File "/usr/local/lib/python3.5/dist-packages/syft/frameworks/tensorflow/init.py", line 4, in
from syft_tensorflow.hook import TensorFlowHook
File "/home/matheus/.local/lib/python3.5/site-packages/syft_tensorflow/init.py", line 2, in
from syft_tensorflow.hook import TensorFlowHook
File "/home/matheus/.local/lib/python3.5/site-packages/syft_tensorflow/hook/init.py", line 1, in
import syft_tensorflow.hook.hook_args
File "/home/matheus/.local/lib/python3.5/site-packages/syft_tensorflow/hook/hook_args.py", line 10, in
from syft.exceptions import PureFrameworkTensorFoundError
File "/usr/local/lib/python3.5/dist-packages/syft/exceptions.py", line 16
f"The {package} dependency is not installed. If you intend"
^
SyntaxError: invalid syntax
Can someone help me to solve this error? I'm using a Debian GNU/Linux 9.11 (stretch).