Skip to content

Commit b79d16b

Browse files
Neural-Link Teamtensorflow-copybara
authored andcommitted
Updates installation guide.
PiperOrigin-RevId: 266462273
1 parent d006fca commit b79d16b

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

g3doc/install.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Note: To exit the virtual environment, run `deactivate`.
5454
#### 4. (Optional) Test Neural Structured Learning.
5555

5656
<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>
5858
</pre>
5959

6060
Success: Neural Structured Learning is now installed.
@@ -105,8 +105,8 @@ Note: To exit the virtual environment, run `deactivate`.
105105
### 5. Install Neural Structured Learning dependencies.
106106

107107
<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>
110110
</pre>
111111

112112
### 6. (Optional) Unit Test Neural Structured Learning.
@@ -115,10 +115,22 @@ Note: To exit the virtual environment, run `deactivate`.
115115
<code class="devsite-terminal tfo-terminal-venv">bazel test //neural_structured_learning/...</code>
116116
</pre>
117117

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.
119131

120132
<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>
122134
</pre>
123135

124136
Success: The Neural Structured Learning package is built.

0 commit comments

Comments
 (0)