में एक पैकेज लोड करने का प्रयास कर रहा है, मैं compat.jl
पैकेज में bitrand()
फ़ंक्शन का उपयोग करना चाहता हूं। यहां मैंने किया है:जूलिया
julia> Pkg.add("compat")
INFO: Nothing to be done
julia> using Compat
julia> bitrand()
ERROR: bitrand not defined
julia> Pkg.update()
INFO: Updating METADATA...
INFO: Computing changes...
INFO: No packages to install, update or remove
julia> using Compat
julia> bitrand()
ERROR: bitrand not defined
julia> Compat.bitrand()
ERROR: bitrand not defined
जानकारी के लिए, मैं Julia-0.3.2
का उपयोग कर रहा हूं। धन्यवाद!
संपादित
julia> Pkg.status()
3 required packages:
- Compat 0.2.10
- Distributions 0.6.3
- StatsBase 0.6.10
3 additional packages:
- ArrayViews 0.4.8
- JSON 0.4.0
- PDMats 0.3.1
julia> Pkg.add("Compat")
INFO: Nothing to be done
julia> using Compat
julia> bitrand()
ERROR: bitrand not defined
पैकेज के नाम के लिए पूंजीकरण फ़र्क पड़ता है? मुझे लगता है कि यह करता है, यानी 'Pkg.add ("compat")' Pkg.add ("compat") ' –
'Pkg.status()' क्या दिखाता है? –
दो टिप्पणियों के जवाब में संपादन देखें। –