@@ -16,15 +16,14 @@ SciPyの推奨されるインストール方法は、あなたの好みのワー
16
16
- ** システムパッケージマネージャー** _ (推奨されません)_
17
17
- ** ソースからのビルド** _ (デバッグと開発用)_
18
18
19
- \[ 静的型スタブ] を使用してSciPyをインストールするには、
19
+ 静的型スタブ] を使用してSciPyをインストールするには、
20
20
[ 型スタブを使用したインストール] ( #type-stubs ) をご覧ください。
21
21
22
22
[ static type stubs ] : [https://typing.readthedocs.io/en/latest/guides/libraries.html]\( https://typing.readthedocs.io/en/latest/guides/libraries.html\)
23
23
24
24
{{< admonition tip >}}
25
25
統合開発環境 (IDE) が正確な型ヒントを提供するためには、型スタブのインストールが必要となる場合があります。
26
26
{{< /admonition >}}
27
- {{< /admonition >}}
28
27
29
28
{{< tabs >}}
30
29
@@ -36,7 +35,7 @@ content = ''' <a name="project-based"></a>
36
35
37
36
Pythonパッケージマネージャーであるuvを使用してSciPyを使用するためのプロジェクトをセットアップする手順は以下の通りです。
38
37
39
- 1 . [ uvドキュメントのインストール手順] ( [ https://docs.astral.sh/uv/getting-started/installation/) に従って] ( https://www.google.com/search?q=https://docs.astral.sh/uv/getting-started/installation/ ) %E3%81%AB%E5%BE%93%E3%81%A3%E3%81%A6) 、\` uv\` をインストールします。
38
+ 1 . [ uvドキュメントのインストール手順] ( https://docs.astral.sh/uv/getting-started/installation/ ) に従って、\` uv\` をインストールします。
40
39
41
40
2 . 新しいサブディレクトリに新しいプロジェクトを作成します。ターミナルで以下を実行します。
42
41
@@ -48,7 +47,6 @@ cd try-scipy
48
47
{{< admonition hint >}}
49
48
2番目のコマンドは、ディレクトリをプロジェクトのディレクトリに変更します。
50
49
{{< /admonition >}}
51
- {{< /admonition >}}
52
50
53
51
3 . SciPyをプロジェクトに追加します。
54
52
@@ -59,7 +57,6 @@ uv add scipy
59
57
{{< admonition note >}}
60
58
これは、Pythonがまだインストールされていない場合に、自動的にPythonをインストールします!
61
59
{{< /admonition >}}
62
- {{< /admonition >}}
63
60
64
61
{{< admonition tip >}}
65
62
同じ方法で他のPythonライブラリもインストールできます。例:
@@ -92,7 +89,7 @@ Pythonスクリプトを実行するには、`uv run myscript.py`を使用でき
92
89
93
90
詳細は[ uvのプロジェクトでの作業ガイド] [ uv-projects ] をご覧ください。
94
91
95
- [ uv-projects ] : [ https://docs.astral.sh/uv/guides/projects/] \( https://docs.astral.sh/uv/guides/projects/ \)
92
+ [ uv-projects ] : https://docs.astral.sh/uv/guides/projects/
96
93
97
94
{{< /admonition >}}
98
95
@@ -103,16 +100,16 @@ Condaはあらゆる言語のパッケージを管理できるため、Python自
103
100
Condaは任意の言語でパッケージを管理できるため、
104
101
Python自体や、コンパイラ、その他の言語をインストールするのにも使用できます。
105
102
106
- [ Conda ] : [ https://docs.conda.io/projects/conda/en/latest/index.html] \( https://docs.conda.io/projects/conda/en/latest/index.html \)
103
+ [ Conda ] : https://docs.conda.io/projects/conda/en/latest/index.html
107
104
108
105
パッケージ管理ツール[ ` pixi ` ] を使用して[ conda-forge] からSciPyをインストールする手順は、` uv ` の手順と非常によく似ています。
109
106
110
- [ conda-forge ] : [ https://conda-forge.org/] \( https://conda-forge.org/ \)
111
- [ `pixi` ] : [ https://pixi.sh/latest/] \( https://pixi.sh/latest/ \)
107
+ [ conda-forge ] : https://conda-forge.org/
108
+ [ `pixi` ] : https://pixi.sh/latest/
112
109
113
110
1 . [ ` pixi ` ドキュメントのインストール手順] [ install-pixi ] に従って、` pixi ` をインストールします。
114
111
115
- [ install-pixi ] : [ https://pixi.sh/latest/] \( https://pixi.sh/latest/ \)
112
+ [ install-pixi ] : https://pixi.sh/latest/
116
113
117
114
2 . 新しいサブディレクトリに新しいプロジェクトを作成します。
118
115
@@ -151,13 +148,12 @@ content = ''' <a name="environment-based"></a>
151
148
152
149
<!-- prettier-ignore-start -->
153
150
154
- 1 . [ Pythonをインストール] ( \[ https://www.python.org/downloads/) します] ( [https://www.google.com/search?q=https://www.python.org/downloads/ ) %E3%81%97%E3%81%BE%E3%81%99 ] ( https://www.google.com/search?q=https://www.python.org/downloads/ ) %E3%81%97%E3%81%BE%E3%81%99)) 。
151
+ 1 . [ Pythonをインストール] ( https://www.python.org/downloads/ ) します。
155
152
156
153
2 . ` venv ` を使用して仮想環境を作成し、アクティブ化します。
157
154
158
155
{{< admonition hint >}}
159
- [ Python Packaging User Guideのチュートリアル] ( \[ https://packaging.python.org/en/latest/tutorials/installing-packages/#creating-virtual-environments) をご覧ください] ( [https://www.google.com/search?q=https://packaging.python.org/en/latest/tutorials/installing-packages/%23creating-virtual-environments ) %E3%82%92%E3%81%94%E8%A6%A7%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84] ( https://www.google.com/search?q=https://packaging.python.org/en/latest/tutorials/installing-packages/%23creating-virtual-environments ) %E3%82%92%E3%81%94%E8%A6%A7%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84))。
160
- {{< /admonition >}}
156
+ [ Python Packaging User Guideのチュートリアル] ( https://packaging.python.org/en/latest/tutorials/installing-packages/#creating-virtual-environments ) をご覧ください。
161
157
{{< /admonition >}}
162
158
163
159
3 . [ ` pip ` ] を使用して SciPy をインストールします。
@@ -168,7 +164,7 @@ python -m pip install scipy
168
164
169
165
<!-- prettier-ignore-end -->
170
166
171
- [ `pip` ] : [ https://pip.pypa.io/en/stable/getting-started/] \( https://pip.pypa.io/en/stable/getting-started/ \)
167
+ [ `pip` ] : https://pip.pypa.io/en/stable/getting-started/
172
168
173
169
### ` conda ` を使用したインストール
174
170
@@ -181,8 +177,8 @@ conda install scipy # または
181
177
mamba install scipy
182
178
```
183
179
184
- [ Miniforge ] : [ https://conda-forge.org/download/] \( https://conda-forge.org/download/ \)
185
- [ `mamba` ] : [ https://mamba.readthedocs.io/en/latest/] \( https://mamba.readthedocs.io/en/latest/ \)
180
+ [ Miniforge ] : https://conda-forge.org/download/
181
+ [ `mamba` ] : https://mamba.readthedocs.io/en/latest/
186
182
187
183
'''
188
184
@@ -228,20 +224,18 @@ name = 'ソースからのビルド'
228
224
content = ''' <a name =" building-from-source " ></a >
229
225
230
226
注意点: ソースコードからSciPyをビルドするのは簡単ではない場合があります。 お使いのプラットフォームで、上記の方法のいずれかを通じてバイナリソフトが利用可能な場合は、それを使用することをおすすめします。
231
- ソースコードからのビルド方法の詳細については 、
232
- \[ ビルドドキュメント ] を参照してください 。
227
+ ソースからビルドする方法の詳細については 、
228
+ [ SciPy ドキュメントのソースからのビルド ガイド ] [ building-docs ] 。
233
229
234
230
[ building-docs ] : https://scipy.github.io/devdocs/building/index.html
235
231
236
232
'''
237
233
238
234
{{</ tabs >}}
239
235
240
- 次のステップは[ SciPyユーザーガイド] ( [ https://docs.scipy.org/doc/scipy/tutorial/) をご覧ください] ( [https://www.google.com/search?q=https://docs.scipy.org/doc/scipy/tutorial/ ) %E3%82%92%E3%81%94%E8%A6%A7%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84 ] ( https://www.google.com/search?q=https://docs.scipy.org/doc/scipy/tutorial/ ) %E3%82%92%E3%81%94%E8%A6%A7%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84)) 。
236
+ 次のステップは[ SciPyユーザーガイド] ( https://docs.scipy.org/doc/scipy/tutorial/ ) をご覧ください。
241
237
242
- {{< admonition tip >}}
243
- IDE(統合開発環境)で正確な型ヒントを提供するために、型スタブのインストールが必要になる場合があります。
244
- {{< /admonition >}}
238
+ <a name =" type-stubs " ></a >
245
239
246
240
## 型スタブを使用したインストール
247
241
@@ -260,5 +254,4 @@ python -m pip install "scipy-stubs[scipy]" # または
260
254
conda install " scipy-typed>=1.14"
261
255
```
262
256
263
- 静的型付けのサポートに関する質問は、
264
- [ ` scipy-stubs ` GitHubリポジトリ] ( [https://github.com/jorenham/scipy-stubs ) にお寄せください] ( https://www.google.com/search?q=https://github.com/jorenham/scipy-stubs ) %E3%81%AB%E3%81%8A%E5%AF%84%E3%81%9B%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84)。
257
+ GitHubリポジトリ] ( https://github.com/jorenham/scipy-stubs ) にお寄せください。
0 commit comments