@@ -54,7 +54,7 @@ Note: To exit the virtual environment, run `deactivate`.
54
54
#### 4. (Optional) Test Neural Structured Learning.
55
55
56
56
<pre class =" prettyprint lang-bsh " >
57
- <code class =" devsite-terminal tfo-terminal-venv " >python -c "import neural_structured_learning as nsl</code >
57
+ <code class =" devsite-terminal tfo-terminal-venv " >python -c "import neural_structured_learning as nsl" </code >
58
58
</pre >
59
59
60
60
Success: Neural Structured Learning is now installed.
@@ -105,8 +105,8 @@ Note: To exit the virtual environment, run `deactivate`.
105
105
### 5. Install Neural Structured Learning dependencies.
106
106
107
107
<pre class =" prettyprint lang-bsh " >
108
- <code class =" devsite-terminal " >cd neural_structured_learning </code >
109
- <code class =" devsite-terminal tfo-terminal-venv " >pip install --requirement " requirements.txt" </code >
108
+ <code class =" devsite-terminal " >cd neural-structured-learning </code >
109
+ <code class =" devsite-terminal tfo-terminal-venv " >pip install --requirement neural_structured_learning/ requirements.txt</code >
110
110
</pre >
111
111
112
112
### 6. (Optional) Unit Test Neural Structured Learning.
@@ -115,10 +115,22 @@ Note: To exit the virtual environment, run `deactivate`.
115
115
<code class =" devsite-terminal tfo-terminal-venv " >bazel test //neural_structured_learning/...</code >
116
116
</pre >
117
117
118
- #### 7. Test Neural Structured Learning.
118
+ ### 7. Build the pip package.
119
+
120
+ <pre class =" prettyprint lang-bsh " >
121
+ <code class =" devsite-terminal tfo-terminal-venv " >python setup.py bdist_wheel --universal --dist-dir="./wheel"</code >
122
+ </pre >
123
+
124
+ ### 8. Install the pip package.
125
+
126
+ <pre class =" prettyprint lang-bsh " >
127
+ <code class =" devsite-terminal tfo-terminal-venv " >pip install --upgrade ./wheel/neural_structured_learning*.whl</code >
128
+ </pre >
129
+
130
+ ### 9. Test Neural Structured Learning.
119
131
120
132
<pre class =" prettyprint lang-bsh " >
121
- <code class =" devsite-terminal tfo-terminal-venv " >python -c "import neural_structured_learning as nsl</code >
133
+ <code class =" devsite-terminal tfo-terminal-venv " >python -c "import neural_structured_learning as nsl" </code >
122
134
</pre >
123
135
124
136
Success: The Neural Structured Learning package is built.
0 commit comments